XML accent failed for mysql

0

I'm facing a strange error with accentuation. I set my bank, table and structure to UTF-8. I use:

header('Content-Type: text/html; charset=utf-8');
mysql_query("SET NAMES 'utf8'");
mysql_query('SET character_set_connection=utf8');
mysql_query('SET character_set_client=utf8');
mysql_query('SET character_set_results=utf8');
mysql_set_charset('utf8');

And even then, when I upload the XML file, it saves to the database with formatting error. I have already used "accept-charset" in FORM, and also saves with errors in the accent.

I thought it was the XML file that had the errors, but I opened it by "notepad ++" (which is also already UTF-8 without BOM), and the failure persists.

Has anyone ever had this problem?

    
asked by anonymous 20.08.2017 / 19:33

0 answers