getting rid of —
MRAB
python at mrabarnett.plus.com
Wed Jul 1 19:56:22 EDT 2009
someone wrote:
> Hello,
>
> how can I replace '—' sign from string? Or do split at that character?
> Getting unicode error if I try to do it:
>
> UnicodeDecodeError: 'ascii' codec can't decode byte 0x97 in position
> 1: ordinal not in range(128)
>
>
> Thanks, Pet
>
> script is # -*- coding: UTF-8 -*-
It sounds like you're mixing bytestrings with Unicode strings. I can't
be any more helpful because you haven't shown the code.
More information about the Python-list
mailing list