try to use unicode
mback1 at live.se
Sat Nov 20 06:53:57 CET 2010
I'm learning python. python 2.6.6 on ubuntu 10.10 I'm swedish so I try to use
unicode to get swedish characters. I've checked wikipedia.
utf-8 is said to be an unicode encoding..
this is the test program:
# -*- coding: utf-8 -*-
and this is the output:
Traceback (most recent call last):
File "test_uni.py", line 5, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 1: ordinal not in range(128)
I'm doing something wrong...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list