php 인코딩 확인
페이지 정보
작성자 미친새 작성일 20-02-21 10:27 조회 18,458 댓글 0본문
$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\"));
관련링크
댓글목록 0
등록된 댓글이 없습니다.