유니코드 변환(decode)

2022. 1. 5. 16:34·Development/PHP
# 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);

 

참고 : https://www.php.net/manual/en/function.urldecode.php

'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
'Development/PHP' 카테고리의 다른 글
  • preg_match_all
  • Out of memory 메모리 부족
  • Passed variable is not an array or object
  • MySQL 연결 및 한글 깨질 경우
곽진돔
곽진돔
Developer
  • 곽진돔
    echo "곽박한 세상";
    곽진돔
  • 전체
    오늘
    어제
    • 분류 전체보기 (200)
      • Development (67)
        • Linux (13)
        • k8s (3)
        • Docker (5)
        • AWS (1)
        • PHP (35)
        • Python (21)
        • Java (1)
        • SpringBoot (4)
        • JavaScript (1)
        • React (10)
        • MySql (19)
        • MongoDB (1)
      • Daily (5)
      • Study (7)
        • TIL (2)
        • license (3)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • 글쓰기
    • 설정
  • 링크

    • github
  • 공지사항

  • 인기 글

  • 태그

    리액트
    CentOS
    Java
    nodejs
    date
    react
    크롤링
    정규표현식
    UTF8
    ssh
    docker
    SQL
    Selenium
    JavaScript
    MySQL
    chromedriver
    인코딩
    error
    Linux
    php
    springboot
    스프링부트
    db
    CentOS7
    리눅스
    IP
    Shell
    윈도우
    Python
    HTML
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
곽진돔
유니코드 변환(decode)
상단으로

티스토리툴바