Encoding of String
Andreas Jung
andreas at andreas-jung.com
Mon Nov 4 11:47:53 EST 2002
No, since a unicode string is unicode does not depend on the
encoding it was encoding in.
-aj
--On Montag, 4. November 2002 17:40 +0100 Thomas Guettler
<zopestoller at thomas-guettler.de> wrote:
> Hi!
>
> Is there a way to get the encoding of a string?
>
> Suppose I do:
>
> mystring="blu"
> ustring=unicode(mystring, "utf-8")
>
> later I want to know which encoding ustring has:
> ustring.getEcoding() --> "utf-8"
>
> Is there something like "getEcoding()"?
>
> thomas
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
---------------------------------------------------------------------
- Andreas Jung http://www.andreas-jung.com -
- EMail: andreas at andreas-jung.com -
- "Life is too short to (re)write parsers" -
---------------------------------------------------------------------
More information about the Python-list
mailing list