Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以,如果我有一个 quasi-unicode UTF-16 字符代码
0x14e 0xf6
我如何确保它是严格的并符合标准?
0x014E 0x00F6
我意识到我可以做一些字符串操作,但我似乎找不到 PHP 的内置方法......
您可以使用 mb_detect_encoding() 进行验证。 http://php.net/manual/en/function.mb-detect-encoding.php