Feb 09
Manchmal ist es nötig, die Datenbank von Typo3 auf UTF-8 umzustellen, da man arabische Zeichen oder was auch immer speichern will, und wobei die Kollation der Datenbank latin1_swedish_ci, mit der sich Typo3 standardmäßig installiert, nicht taugt.
Dazu habe ich diesen nützlichen Blogeintrag von Markus Giesen gefunden: Typo3 mySQL-Datenbank auf UTF-8 umstellen bzw. konvertieren
Jedoch ist bei mir im Export nie die Kollation festgeschrieben, diesen Schritt konnte ich de facto überspringen. Auch hatte ich keinen phpMyAdmin, also mussten die Kommandos für die SQL-Konsole zum Anpassen der Kollation her:
Anzeigen der verfügbaren Kollationen auf dem Server:
SHOW COLLATION
SHOW COLLATION LIKE 'utf%'
Ändern der Kollation der aktuellen Datenbank:
ALTER DATABASE DEFAULT COLLATE utf8_general_ci
Und danach weiter nach Markus Giesens Anleitung verfahren und alles wird gut
Tags:
kodierung,
kollation,
mySQL,
php,
Typo3,
utf-8
Nov 02
I'm currently getting into the Symfony framework and I can definitly say that I like it.
But as my site was finished after only some hours I had a problem concerning the display of special characters like the umlauts (ä, ö, ü) aso. I don't use a database created by SF/Propel but use an existing one with latin1_* encoding (the default TYPO3 db encoding). Unfortunatly all umlauts where displayed as questionmark so I started finding an solution. The characters are fuzzy because they were not correctly returned by propel. I tried all configuration directives I found (setting the encoding of the connection to utf-8 aso) but nothing worked.
Finally I found a snippet that fixes the problem for me: Setting UTF-8 for Propel with MySQL tables and now everything is just fine!
Tags:
encoding,
latin,
propel,
Symfony,
utf-8
Recent Comments