Characters in Python

Gerrit Holl gerrit at nl.linux.org
Thu Jun 5 08:53:13 EDT 2003


Jan Sundström schreef op donderdag  5 juni om 14:26:57 +0000:
>    >>> str = 'åäö'
>    UnicodeError: ASCII encoding error: ordinal not in range(128)

I'm not sure whether I am correct, but does "str = u'åäö'" work?

yours,
Gerrit.

-- 
180. If a father give a present to his daughter -- either marriageable
or a prostitute (unmarriageable) -- and then die, then she is to receive a
portion as a child from the paternal estate, and enjoy its usufruct so
long as she lives. Her estate belongs to her brothers.
        -- 1780 BC, Hammurabi, Code of Law
--
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/





More information about the Python-list mailing list