Search code examples
phpzend-frameworkzend-db

Zend $db->quote not encoding special characters


I'm trying to use Zend's insert with the following string:

Almoço

Whether or not I use zend's quoteInto function, the string is inserted into the database as:

Almoço

How do I fix it so that the string I write/read to/from the database is the same as the original string?


Solution

  • You should specify a proper encoding (for db columns and connection) that has ç character in its character set.

    In this case it's presumably UTF-8