[Zope] unicode support
Peter Bengtsson
peter at fry-it.com
Thu Jun 26 10:49:00 EDT 2008
Make the form input tags look like this:
<input name="mystring:utf-8:ustring" />
then you'll be certain to get it into Zope as unicode under utf-8.
2008/6/26 Garry Saddington <garry at schoolteachers.co.uk>:
> I am using Zope 2.9 connected to a Posgres DB via psycopg. My database
> encoding is UTF8.
>
> I am getting the following error when users try to insert text in the
> database containing £ signs:
>
> ERROR: invalid byte sequence for encoding "UTF8": 0xa3
>
> This is due to the encoding of a £ sign in the text being sent to the DB.
>
> My question then is how do I make sure that all encodings submiitted from
> forms are in the correct UTF8 format?
>
> Regards
>
> Garry
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
More information about the Zope
mailing list