开发者

Smart way to find out string encoding?

I wonder whether it is possible to find what is the encoding of string? I know that i开发者_Go百科t may be impossible for some strings (e.g. that do not have non-ASCII characters). Maybe it is possible to obtain a list of encodings that may be correct (possible) for a given string?

I'm looking for some other way than trying to decode/encode and wait for an exception.


Chardet does a educated guess. Read the FAQ before you use it!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜