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

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

WBOY
WBOYOriginal
2016-06-13 12:18:221142browse

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

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

Statement:
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
Previous article:php 打包gd 库Next article:生手学php的疑问(周末结贴)