How to decode a string
Fredrik Lundh
fredrik at pythonware.com
Mon Aug 21 10:38:40 EDT 2006
Lad wrote:
> To be able to decode a string successfully, I need to know what coding
> it is in.
ask whoever provided the string.
> The string can be coded in utf8 or in windows-1250 or in another
> coding. Is there a method how to find out the string coding.
in general, no. if you have enough text, you may guess, but the right
approach for that depends on the application.
</F>
More information about the Python-list
mailing list