Displaying special characters

Solved
t671 Posted messages 1472 Registration date   Status Membre Last intervention   -  
t671 Posted messages 1472 Registration date   Status Membre Last intervention   -
Hello,

Through an HTML page, I input various fields. On my HTML page, I have the meta:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
On this page, I choose the month in the style of 01, 02, 03......:
Month: <SELECT name="mois_manif">
<OPTION VALUE=""></OPTION>
<OPTION VALUE="01">01</OPTION>
<OPTION VALUE="02">02</OPTION>
<OPTION VALUE="03">03</OPTION>................
From there, I have a PHP script to insert into my database (for different countries):
$months = array("january", "february", "march", "april", ................);
$months_it = array("gennaio", "febbraio", "marzo", "aprile", ................);
$months_sp = array("enero", "febrero", "marzo", "abril",.................);
$months_gb = array("January", "February", "March", "April"...............
And the result in the database is that special characters are replaced by "?". Therefore, the display on the internet is not good!
The database is declared as "utf8_general_ci". The date field where the month is stored is also declared as "utf8_general_ci". I tried "latin1_general_ci", and it's the same!!

What should I do?
Thank you

4 réponses

Reivax962 Posted messages 3742 Status Membre 1 011
 
Hello,

Make sure your .php file (the source code) is properly encoded in UTF-8 (without BOM).
Notepad++ for example allows you to effectively check / modify the encoding of a file.

Xavier
0