Escaping certain characters
jan.danielsson at gmail.com
Sun Jul 31 12:20:35 CEST 2005
Jan Danielsson wrote:
>>In : s.encode('string_escape')
>>In : Out.decode('string_escape')
>>Not *quite* what you asked for, but it ought to be close enough.
> That'll do just fine. Many thanks!
Hmm... On second thought, I need to escape more characters.
Is there no other way to escape characters in strings?
More information about the Python-list