0

I'm developing a tool which inserts a CSV file created from an Excel file, into a MySQL database using PHP. I got a serious encoding issue. For example the word :

numéro

becomes the following string :

num├â┬®ros

I've never seen such an encoding problem. I tried to force conversion to UTF8 or ANSI : it's not better. Any idea ?

Thank you.

Pete_Gore
  • 594
  • 1
  • 5
  • 20

1 Answers1

0

Ok, it seems to work only if :

  • I let the native Excel CSV encoding (which seems to be ANSI according to Notepad++)
  • I add SET NAMES 'UTF8'; before my INSERT SQL request

Hope it will work durably !

Pete_Gore
  • 594
  • 1
  • 5
  • 20