# unicode decode
function utf8_urldecode($str) {
$str = preg_replace("/%u([0-9a-f]{3,4})/i","&#x\\1;",urldecode($str));
return html_entity_decode($str,null,'UTF-8');;
}
# use
$str = utf8_urldecode($str);
'Development > PHP' 카테고리의 다른 글
preg_match_all (0) | 2022.01.11 |
---|---|
Out of memory 메모리 부족 (0) | 2022.01.06 |
Passed variable is not an array or object (0) | 2021.12.31 |
MySQL 연결 및 한글 깨질 경우 (0) | 2021.12.30 |
날짜변환 (0) | 2021.12.29 |