Binary strings, unicode and encodings
Peter Hansen
peter at engcorp.com
Fri Jan 16 09:23:05 EST 2004
Laurent Therond wrote:
>
> I forgot to ask something else...
>
> If a client and a server run on locales/platforms that use different
> encodings, they are bound to wrongly interpret string bytes. Correct?
Since the byte strings are by definition *encoded* forms of the Unicode
data, they definitely need to have a shared frame of reference or they
will misinterpret the data, as you surmise. You can't decode something
if you don't know how it was encoded.
-Peter
More information about the Python-list
mailing list