--On 2. Juni 2006 12:08:09 +0200 Jonas Nielsen <[EMAIL PROTECTED]> wrote:

I have a MySQL database with text in ISO 8859-1. However Plone displays
strings in UTF-8.

I am looking for a function to convert between ISO 8859-1 and unicode. (I
am /not/ looking for a way to change how the strings are stored in MySQL
or how to change the encoding of an entire html page).

Python unicode strings have an encode() Method. For converting to a unicode
string you want to use the unicode() method of Python...the Python doc is your friend.


ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting

Attachment: pgpUaLvu2PBhI.pgp
Description: PGP signature

Zope-DB mailing list

Reply via email to