开发者

ord/char question

开发者 https://www.devze.com 2023-01-09 06:15 出处:网络
I have text that has ord elements in it such as: Ya marcу medianoche what converts that text into开发者_如何学Go proper text?Because its not just a \"ord\", but its a html-entity written

I have text that has ord elements in it such as:

Ya marcу medianoche            

what converts that text into开发者_如何学Go proper text?


Because its not just a "ord", but its a html-entity written as utf-codepoint you can use html_entity_decode()

var_dump(html_entity_decode("Ya marcу medianoche", ENT_COMPAT, "UTF-8"));
0

精彩评论

暂无评论...
验证码 换一张
取 消