동일한 인코딩을 도시 mb_detect_encoding, 다음 코드I 이상한 문제가
가$str = "נסיון" // <--- Hebrew chars
echo mb_detect_encoding ($str)."<br><br><br>";
$str = iconv (mb_detect_encoding($str),'UCS-2BE',$str);
echo mb_detect_encoding ($str)."<br><br><br>";
이 뜻 출력 :
가UTF-8이 코드
이다 UTF-8
메모장 + +를 사용하여 UTF-8로 인코딩 된 파일에 BOM없이 다른 인코딩을 시도했지만 작동하지 않았습니다.
은 또한 사용하여 문자열 변환 시도 :$str = mb_convert_encoding($str,'UCS-2BE');
을하지만 그 중 하나가 작동하지 않았다. 어떤 통찰력? documentation for mb_detect_order 가입일
무엇이 문제입니까? 히브리어를 감지하려면? 어때?'preg_match ('/ [\ u0591- \ u05F4] /', $ sData); ' –
비슷한 문제 http://stackoverflow.com/questions/17104340/mb-detect-encoding-doesnt-properly-working-with -windows-1250-cp1250 – giorgio79