1.3 added "encoding" => "utf8" to default db config #176

Merged
merged 1 commit into from Aug 13, 2011

Conversation

Projects
None yet
3 participants
Contributor

martin-ueding commented Aug 13, 2011

Assuming that a lot of people want to run their database with utf8 I added the option to the database.php.default. It is just a comment, so you can activate if you need it.

ADmad added a commit that referenced this pull request Aug 13, 2011

Merge pull request #176 from martin-ueding/1.3
Added commented "encoding" => "utf8" to default db config

@ADmad ADmad merged commit 2a2a4ab into cakephp:1.3 Aug 13, 2011

Contributor

majna commented Aug 13, 2011

btw. Oracle uses 'charset' config key instead of 'encoding'.

Member

ADmad commented Aug 13, 2011

Yeah 'encoding'=>'utf8' is given since default config specifies 'driver' => 'mysql'. If you want you can submit a patch updating the comments above the class definition and specify the key to use for oracle.

Contributor

martin-ueding commented Aug 15, 2011

That is what I thought too, but I got stuff like d?rfen (with that diamond shaped ? char) which is clearly a UTF8 interpreted as latin1 issue. So I added the line and I finally got dürfen. So the default might not work everywhere.

This is what I use:
Apache 2.2.17-1ubuntu1
libapache2-mod-php5 5.3.5-1ubuntu
php5-mysql 5.3.5-1ubuntu
MySQL Server 5.1.54-1ubuntu4

tPl0ch pushed a commit to tPl0ch/cakephp that referenced this pull request Jun 1, 2012

Merge pull request #672 from sitedyno/cookie-encryption-#471
Add stronger encryption, and make it available in cookiecomponent.

Fixes #471
Fixes #176
Fixes #2043
Fixes #1524
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment