Encoding of String

Thomas Guettler zopestoller at thomas-guettler.de
Mon Nov 4 11:40:36 EST 2002


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





More information about the Python-list mailing list