How to import Romanian diacritics from csv to mysql database

435 views Asked by At

i have found one error on my script. While is importing from csv file to MySQL database diacritics shown strange char.

i need fast and realiable solution in SQL query in my code below:

$sql = "INSERT into medici (`cnp`, `cod_parafa`, `tit_id`, `numele`, `numele_anterior`,...

what i need is importing fields: numele and numele_anterior with support my romanian char like șțăîâ. My database has set utf8_romanian_ci char.

0

There are 0 answers