An attempt at guessing the encoding of a (non-unicode) string

Roger Binns rogerb at rogerbinns.com
Sat Apr 3 15:22:05 EST 2004


Christos TZOTZIOY Georgiou wrote:
> This could be implemented as a function in codecs.py (let's call it
> "wild_guess"), that is based on some pre-calculated data.

Windows already has a related function:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/unicode_81np.asp

Read more about it here:

http://weblogs.asp.net/oldnewthing/archive/2004/03/24/95235.aspx

Roger





More information about the Python-list mailing list