Please, do not top-post. On Fri, Jan 04, 2008 at 04:15:09PM -0500, Glenn MacGregor wrote: > Looking into this issue a bit more revealed that in the StringValidator > class, line 505 on col.py, the from_python function tries to encode all > unicode type strings to ascii. Is this correct behavior? If so how can I get > around it ?
What version of SQLObject? In the latest version the encoding is not 'ascii' - the code is dbEncoding = getattr(connection, "dbEncoding", None) or "ascii" so to change the encoding (on MySQL) you have to set it in the DB URI: mysql://host:port/database?charset=utf-8 ^^^^^^^^^^^^^ Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss