Hi,
can anyone tell me why strpos() doesn't return anything when I search for Korean characters as follows: -
<?php $url = 'http://logis.korail.go.kr/driveinfo/TrainLocSearchp.jsp?carNo=7000'; $contents = file_get_contents($url); echo strpos($contents,"검색 조건에 대한 자료가 없습니다"); ?>
Ta,
JT
Because your PHP file is saved using a different encoding than the encoding being used by the web site? That would be my first guess.
Resolved by changing
charset=utf-8
to
charset=euc-kr