Problemi di charset tra Propel ed un database utf8

Se come me avete avuto dei problemi con il giusto charset-encoding tra Propel e un database utf8, per sistemare le cose è sufficente aggiungere il parametro encoding nel file database.yml. Sembra che il client Propel si connetta di default con un charset non utf8, molto probabilmente usa di default il wester (ISO-8859-1).

1
2
3
4
5
6
all:
  propel:
    class:          sfPropelDatabase
    param:
      dsn:          mysql://username:password@localhost/database
      encoding:     utf8

2 Replies to “Problemi di charset tra Propel ed un database utf8”

  1. Hi! Thank you for this solvation. I really could not find any at symfony forum which uses propel as ORM handler.

  2. Hello,

    I have a little trouble…
    I made a web aplication using symfony 1.1 and propel with mysql.

    I have a database with romanian characters.
    This is the old good site: http://www.sejur-extern.ro/Egipt/Sharm-El-Sheikh
    I started from scrach an aplication with symfony 1.2 with the same database, and the romanian characters are some symbols.

    This is the new version but with the same database: http://sejurnew.sejur-extern.ro/turism-extern/Egipt/Sharm-El -Sheikh.html

    Can you tell me how to solve this problem?

Leave a Reply

Your email address will not be published. Required fields are marked *