PHP: Converting Unicode strings to ANSI strings

后端 未结 3 1765
庸人自扰
庸人自扰 2020-12-18 12:02

Does PHP have any standard function(s) to convert Unicode strings to plain, good old-fashioned ANSI strings (or whatever format PHP\'s htmlentities understan

3条回答
  •  无人及你
    2020-12-18 12:35

    Browsers already understand UTF-8. If you want them to know that you're sending them UTF-8 then you need to tell them.

提交回复
热议问题