Re: Unicode - ISO 8859-1 conversion
Andreas Jung <[email protected]>
| Newsgroups | gmane.comp.web.zope.database |
|---|---|
| Message-ID | <9F7B57FBAE58F4634BDD825A@[192.168.0.28]> |
--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. -aj -- 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 _______________________________________________ Zope-DB mailing list [email protected] http://mail.zope.org/mailman/listinfo/zope-db
signature.asc
(application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFEgBCvCJIWIbr9KYwRAkmJAKC9AgeOc9diPaAGj9sjidlqiB1SoACgoDYc 5Ls+gPkshzRRh5bygAyExBc= =WGOM -----END PGP SIGNATURE-----