How to decode a string

Fredrik Lundh fredrik at pythonware.com
Tue Aug 22 03:50:31 EDT 2006


Lad wrote:

> for
> print repr(RealName)  command
> I will get
> 
> P?ibylov\xe1 Ludmila
> where instead of  ? should be also a character

that's not very likely; repr() always includes quotes, always escapes 
non-ASCII characters, and optionally includes a Unicode prefix.

please try this

   print "*", repr(RealName), type(RealName), "*"

and post the entire output; that is, *everything* between the asterisks.

</F>




More information about the Python-list mailing list