On Tue, Mar 13, 2007 at 10:30:17AM +0100, Frank Wagner wrote: > >>> meinTest(name="äöü") # causes: > > Traceback (most recent call last): > (...) > File "/usr/lib/python2.4/site-packages/SQLObject-0.8.0-py2.4.egg/ > sqlobject/main.py", line 1111, in set > value = to_python(dbValue, self._SO_validatorState) > File "/usr/lib/python2.4/site-packages/SQLObject-0.8.0-py2.4.egg/ > sqlobject/col.py", line 549, in to_python > return unicode(value, self.db_encoding) > File "/usr/lib/python2.4/encodings/utf_8.py", line 16, in decode > return codecs.utf_8_decode(input, errors, True) > UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-2: > invalid data
Is "äöü" really an utf-8 string? Can you run >>> unicode("äöü", "utf-8") in the python shell? Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss