Re: Sonderzeichen-Problem im ZMI / Page Template bei MySQL DB Abfrage
Sascha Gottfried <[email protected]>
| Newsgroups | gmane.comp.web.zope.german |
|---|---|
| Message-ID | <[email protected]> |
Immer pypi checken: http://pypi.python.org/pypi/MySQL-python/1.2.3 http://pypi.python.org/pypi/Products.ZMySQLDA/3.1.1 http://pypi.python.org/pypi/psycopg/1.1.21 http://pypi.python.org/pypi/psycopg2da/2.0.9 Wenn du etwas Zeit übrig hast, schau dir mal zc.buildout an, damit kannst du dir diese Umgebung mit einer Konfigurationsdatei aufsetzen. Für deinen Fall ist das alles überschaubar. Falls du Hilfe brauchst, melde dich. Viel Glück. Am 13.09.2011 16:39, schrieb Nico Grubert: >> Falls es nicht klappt, nenne Versionen und relevante Einstellungen und >> führe sie in deiner Antwort auf. >> Python, Zope/Plone, mysql-python, ZMySQLDA und Properties, >> default-zpublisher-encoding, evtl. Konvertierung in deinem Code nennen. > > Hallo Sascha > > Vielen Dank für die ausführliche Antwort. > Ich habe zum Test mal den MySQL Dump umgewandelt, um ihn in eine > PostgreSQL zu schieben. Dort klappt alles wunderbar. > > Ich hatte nicht gewusst, dass man dem MySQL connect() ein charset > mitgeben kann/muss. Ich hatte gedacht, dass sich das mysql-python > diese Information automatisch aus der Definition der MySQL-Datenbank > zieht. > > Ich benutze noch MySQLdb 1.2.3 und MySQLDA 2.0.8. Wo gibt es denn eine > neuere Version des MySQLDAs? Beim MySQLDA 2.0.8 gibt es leider keine > Option, dem ZMySQL DA Objekt in Zope ein charset mitzugeben. Beim > Postgres DA psycopg2) gibt es diese Option praktischerweise. > > Hier meine aktuelle Konfiguration: > + zope.conf -> default-zpublisher-encoding utf-8 > + Zope 2.10.11 > + Python 2.4.6 > + mysql-python 1.2.3 > + MySQLDA 2.0.8 > > > Viele Grüsse und nochmals herzlichen Dank. > > Nico > > > _______________________________________________ > zope mailing list > [email protected] > https://mail.dzug.org/mailman/listinfo/zope _______________________________________________ zope mailing list [email protected] https://mail.dzug.org/mailman/listinfo/zope