Re: problems with  character

Claudio Grondi claudio.grondi at freenet.de
Tue Mar 22 16:39:30 EST 2005


"Claudio Grondi" <claudio.grondi at freenet.de> schrieb im Newsbeitrag
news:3abdeiF67qq7uU1 at individual.net...
> >>s = 'aaaaa  aaa'
> >>What am I doing wrong?
>
> First get rid of characters not allowed
> in Python code.
> Replace  with appropriate escape
> sequence: /x## where ##  is the (should be \x##)
> hexadecimal code of the ASCII
> character.
>
> Claudio

i.e. probably instead of 'aaaaa  aaa'
'aaaaa \xC2 aaa'
In my ASCII table 'Â' is '\xC2'

Claudio





More information about the Python-list mailing list