Re: Sonderzeichen-Problem im ZMI / Page Template bei MySQL DB Abfrage

Nico Grubert <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.