PhpMyAdmin and German

I am developing a PHP / MySQL application using vertrigoserver. I need to enter german text in tables. The problem is when I read tables from PHP some of the characters do not display the exact typed one. Are additional steps needed to effectively display all symbols?

0


source to share


2 answers


You have to set your database fields utf8_general

and hence force your MySQL connection to use UTF-8 .

mysql_connect();
mysql_query("SET NAMES 'utf8'");

      



As long as you are displaying the results via (x) html, you should set the headers correctly as well.

+2


source


Did you set the correct character set in the tables when creating them?



You must set them to a character set that ümlaut supports, etc.

0


source







All Articles