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

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

WBOY
WBOYOriginal
2016-06-23 13:36:101208browse

遇到一个html实体编码(应该是):삐딱하게    浏览器能识别出来是韩语,但是不知道怎么用php把它转化成韩语,大神有知道的吗?麻烦帮下忙~~万分感谢!!!


回复讨论(解决方案)

你那个只是 unicode 的韩文字符,不是韩文编码的

$s = '삐딱하&'.'#44172;';echo $text = mb_convert_encoding($s , "utf-8", 'HTML-ENTITIES'); 
或提取出其中数字,如
echo iconv('ucs-2', 'utf-8', pack('n', 44172));

遇到一个html实体编码(应该是):삐딱하게    浏览器能识别出来是韩语,但是不知道怎么用php把它转化成韩语,大神有知道的吗?麻烦帮下忙~~万分感谢!!!



遇到一个html实体编码(应该是):삐딱하게    浏览器能识别出来是韩语,但是不知道怎么用php把它转化成韩语,大神有知道的吗?麻烦帮下忙~~万分感谢!!!



谢谢!!!
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