Symfony Latin – UTF-8 problem

PHP, Programming, Scripting Languages, Symfony Add comments
  • english
  • german

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: , , , ,

3 Responses to “Symfony Latin – UTF-8 problem”

  1. rpsblog.com » A week of symfony #96 (27 october -> 2 november 2008) Says:

    [...] Symfony Latin – UTF-8 Problem [...]

  2. Dr. Azrael Tod Says:

    Welcome to Encoding-Hell…

    Ich schlag mich schon seit Wochen mit Codierungsproblemen rum, es ist schon ziemlich beschissen wenn ein Python-Prog nie weiß in welcher Codierung die nächste gelesene Zeile aus DB oder Netzwerk kommt und dieses immer in UTF-8 codieren soll.

    Symfony ist zum Glück da als Webframework ziemlich einfach, außer genannten DB-Einstellungs-Problemen (die ziemlich schnell gelöst waren) wirds da wohl kaum Probleme geben.

  3. Alex (zoe.vc) Says:

    Jop, es geht gut, solange die mySQL Datenbank in meinem Falle > 4.1 ist. Dummerweise ist sie das auf dem Liveserver nicht (1und1 Ding – zum Glück nicht meiner) und damit stehe ich wieder am Anfang ;)

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Anmelden