POST 통째로 인코딩 하기

 

인코딩 하려는 문자를 통째로...

 

 encoding("UTF-8", "EUC-KR", &$_POST);
 function encoding($s1, $s2, $arr) { // 인코딩
    while (list($key, $val) = each($arr)) {
     $arr[$key] = iconv($s1, $s2, $val);
    }
 }

 

 

Press ESC to close