r7471 인코딩 변환 작업 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7474 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2010-05-19 04:48:26 +00:00
parent 886c449505
commit 58f1eee7d6
2 changed files with 6 additions and 2 deletions

View file

@ -222,7 +222,9 @@ function convertEncodingStr($str) {
$charset = $charset_list[$i];
if($str){
$cstr = iconv($charset,$charset.'//IGNORE',$str);
if($str == $cstr) return $cstr;
if($str == $cstr && $charset != 'UTF-8'){
return iconv($charset, 'UTF-8//IGNORE', $str);
}
}
}