0

I want to use the Zend Framework 1.12 PDO insert function to save some datas. I get the following array:

array (size=2)
  'ticket_id' => string '1' (length=1)
  't_title' => string 'Foo Ä Bar' (length=9)

I call the insert function and save the id with title. After i check the databas and only the id and title Foo submitted. The string got cut if there is an umlaut wihout an exception and i dont know why.. When I enter manually through phpmyadmin umlauts it works.

The column t_title is set as 'utf8_unicode_ci' and 'varchar(255)'.

The database connection:

resources.db.adapter = "PDO_MYSQL"
resources.db.params.host = "host"
resources.db.params.dbname = "db"
resources.db.params.username = "user"
resources.db.params.password = "pw"
resources.db.params.charset = "utf8"
resources.db.params.driver_options.1002 = "SET NAMES utf8;"

Did you ever seen this problem?

0 Answers0