functionconvStr($str) {
$dect_str = mb_detect_encoding($str, "UTF-8, EUC-KR");
if ($dect_str != "EUC-KR") {
$conv_result = iconv("UTF-8", "EUC-KR" ,$str);
} else {
$conv_result = iconv("EUC-KR", "UTF-8", $str);
}
return $conv_result;
}
'컴퓨터' 카테고리의 다른 글
[APACHE] 한글 인코딩 문제 해결 (0) | 2019.12.27 |
---|---|
[스크랩] 특수문자 영어 정식 발음 (0) | 2019.02.12 |
오류로 인해 이 프로그램이 Windows와 상호 작용하지 않습니다 (0) | 2016.12.02 |