Quickie: converting r"\x2019" to int

Serge Orlov Serge.Orlov at gmail.com
Fri Apr 7 05:43:16 EDT 2006


Robin Haswell wrote:
> Hey guys. This should just be a quickie: I can't figure out how to convert
> r"\x2019" to an int - could someone give me a hand please?

>>> int(r'\x2019'.decode('string_escape'))
19




More information about the Python-list mailing list