[Zope] Re: unicode and zope
Shan Duncan
sdduncan at abs.animalbehavior.org
Wed Feb 4 16:58:27 EST 2004
Thanks for the tip.
In my case I had a problem with ZPT returning the error. I used
iso-8859-1 as the default as that is the character set for the
version of MySQL server I am running.
As I understand it mysql 4.1 will have unicode support.
Cheers,
-Shan
On Wed, 4 Feb 2004, Toby Dickenson wrote:
> On Wednesday 04 February 2004 15:18, Andrew Altepeter wrote:
> > (bringing this back on the list...)
> >
> > Hi Shan,
> >
> > It appears that the steps you outlined have solved my issue(s) too.
>
> Youve probably swapped your original problems for a set of different ones.
> This does make some things easier so I understand the temptation to use it,
> but it is not a supported configuration for Zope or python :-(
>
> > When the form is submitted
> > with these unicode characters in it, my script raises a UnicodeError
> > when ZMySQLDA apparrently attempts to change the encoding to ascii.
>
> add a :utf8:ustring marshalling tag on the end of your field, and your
> variable will hold a unicode object.
>
> unicode objects have a .encode() method, which will be useful if your database
> adapter needs an 8-bit string.
>
>
More information about the Zope
mailing list