2 ms·
Mark Pilgrim's chardet library is great for dealing with unknown uncodings - it uses statistical analysis to figure out the encoding, based on code back-ported
by simonw 16y ago
Mark Pilgrim's chardet library is great for dealing with unknown uncodings - it uses statistical analysis to figure out the encoding, based on code back-ported from Firefox/Mozilla:
http://chardet.feedparser.org/ http://chardet.feedparser.org/