简体   繁体   English

如何检测某些文本的编码?

[英]How do I detect the encoding of some text?

如何确定某些文本以ASCII,Unicode或UTF-8编码的格式?

Short answer 简短答案

There is no guaranteed way to detect the encoding of an arbitrary set of bytes. 没有保证的方法来检测任意字节组的编码。


Long answer 长答案

Ripped from my answer here . 从我的答案中撕开


See also 也可以看看

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM