2007/3/26, Roman Kreuzhuber <[EMAIL PROTECTED]>:
Thanks for the quick response! I see! Oh I didn't realize that it's not the list which raises an error. For a test I tried to insert a string containing a unicode character as follows: ListObject = [] ListObject.insert(0,u"Möälasdji") which raises: "SyntaxError: Non-ASCII character '\xfc' in file C:\python proj\lists\main.py on line 48, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details"
At the top of your Python file, below the line which might be there that reads #!/usr/bin/python but above any other line, add: # -*- coding: utf-8 -*- This tells the parser that this file should be read as unicode. -- Andre Engels, [EMAIL PROTECTED] ICQ: 6260644 -- Skype: a_engels
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor