2008-12-28

Symfony & encoding

To avoiding problems with encoding in (Symfony - Propel orm) you should:
1. databases.yml

all:
propel:
class: sfPropelDatabase
param:
...
encoding: utf8


2. propel.ini

propel.database.encoding = utf8


3. On DB creation

create database DbName DEFAULT CHARACTER SET utf8;

No comments: