php 인코딩 확인
페이지 정보
본문
$str =\"한글인지ghkrdls 테스트 d435,.$%^&'다\";
$encode = array('ASCII', 'UTF-8', 'EUC-KR');
$str_encode = mb_detect_ENCODING($str, $encode);
if(strtoupper($str_encode) == 'UTF-8'){
echo 'UTF-8 이군효!!';
}
echo \"<br>\".strtoupper($str_encode);
mb_detect_encoding($str, \"JIS, eucjp-win, sjis-win\");
mb_detect_encoding($str, \"auto\");
mb_detect_encoding($str, array(\"JIS, eucjp-win, sjis-win\"));
$encode = array('ASCII', 'UTF-8', 'EUC-KR');
$str_encode = mb_detect_ENCODING($str, $encode);
if(strtoupper($str_encode) == 'UTF-8'){
echo 'UTF-8 이군효!!';
}
echo \"<br>\".strtoupper($str_encode);
mb_detect_encoding($str, \"JIS, eucjp-win, sjis-win\");
mb_detect_encoding($str, \"auto\");
mb_detect_encoding($str, array(\"JIS, eucjp-win, sjis-win\"));
관련링크
- 이전글php con DB 저장 함수 20.02.21
- 다음글php 특수문자 처리 20.02.21
댓글목록
등록된 댓글이 없습니다.