getting rid of —
benjamin at python.org
Thu Jul 2 01:55:23 CEST 2009
someone <petshmidt <at> googlemail.com> writes:
> 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)
Please paste your code. I suspect that you are mixing unicode and normal strings.
More information about the Python-list