[英]How do I detect the encoding of some text?
如何确定某些文本以ASCII,Unicode或UTF-8编码的格式?
There is no guaranteed way to detect the encoding of an arbitrary set of bytes. 没有保证的方法来检测任意字节组的编码。
Ripped from my answer here . 从我的答案中撕开了 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.