mysql - Symfony2 and doctrine: different encoding between linux and mac -


I am creating a web application using Symfony2.

I saw a dangerous behavior based on the OS used in the special characters in the database.

For example, say that the user wants to insert a text field "Cicciò" in a form. If this operation is performed on a Linux machine then the value in the database is "CCO" properly, on the other hand, if the user is a user of the user while typing the same number, then the database will store the value "Cicci".

I am sure that these problems will arise in the medium-term.

The server running the application is CentOS-based version 2.6.3 I am using MySQL for database and Simphony version.

My Symphony Configuration

  Principle: Dub: Driver: "% database_driver%" host: "% Database_host%" port: "% database_port%" dbname: "% database_name % "User:"% database_user% "Password:"% database_password% "charset: UTF 8  

How to prevent such anomalies in database views on any values?

Thanks in advance


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -