[mod_python] Unicode Oddity

Joshua Ginsberg listspam at flowtheory.net
Wed Jun 21 11:54:45 EDT 2006


For the love of God, please make sure you read:

http://www.joelonsoftware.com/articles/Unicode.html

and (shameless plug):

http://starboard.flowtheory.net/blog/?q=node/206

-jag

On Wed, 2006-06-21 at 12:31 +0100, Robert Synnott wrote:
> I'm having a bit of trouble with Unicode. On a linux system, python
> 2.4.2, mod_python 3.2.8, inputting and outputting unicode strings to
> and from a mysql database works perfectly, with no particular extra
> work except use_unicode=True in the mysqldb parameters. Also, unicode
> values from a .py file can be outputted happily. 
> 
> However, when I try the same software on a MacOS X machine, same
> versions of python and mod_python, I get 'UnicodeEncodeError: 'ascii'
> codec can't encode characters in...'
> 
> Is there anything special I should be doing to handle unicode? Any
> idea why I'm seeing this error? 
> Thanks
> Rob
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python



More information about the Mod_python mailing list