duanqing2209 2012-10-18 19:24
浏览 59

强制将字符的格式设置为UTF-16

So, if I have a quasi-unicode UTF-16 character code of

0x14e
0xf6

How would I make sure that it's strict and adheres to the standard?

0x014E
0x00F6

I realize that I can do a few string manipulations, but I can't seem to find a built-in method with PHP...

  • 写回答

1条回答 默认 最新

  • dongmu2174 2012-10-30 16:59
    关注

    You can validate using mb_detect_encoding(). http://php.net/manual/en/function.mb-detect-encoding.php

    评论

报告相同问题?