Python treats non-breaking space wrong?

magnus.lycka at gmail.com magnus.lycka at gmail.com
Sat Jun 5 04:30:40 EDT 2010


It seems that Python treats non-breaking space (\xa0) as a normal
whitespace character, e.g. when splitting a string. See below:

>>> s='hello\xa0there'
>>> s.split()
['hello', 'there']

Surely this is not intended behaviour?



More information about the Python-list mailing list