getting rid of —

Benjamin Peterson benjamin at
Thu Jul 2 01:55:23 CEST 2009

someone <petshmidt <at>> writes:

> 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)

Please paste your code. I suspect that you are mixing unicode and normal strings.

More information about the Python-list mailing list