Home > Backend Development > PHP Tutorial > 求教关于html实体编码转化为韩语的有关问题

求教关于html实体编码转化为韩语的有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:18:22
Original
1181 people have browsed it

求教关于html实体编码转化为韩语的问题
遇到一个html实体编码(应该是):삐딱하게    浏览器能识别出来是韩语,但是不知道怎么用php把它转化成韩语,大神有知道的吗?麻烦帮下忙~~万分感谢!!!
------解决思路----------------------
你那个只是 unicode 的韩文字符,不是韩文编码的

$s = '&#49296;&#46385;&#54616;&'.'#44172;';<br />echo $text = mb_convert_encoding($s , "utf-8", 'HTML-ENTITIES'); <br />
Copy after login
或提取出其中数字,如
echo iconv('ucs-2', 'utf-8', pack('n', 44172));<br />
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template