Import a table data with latin characters in phpMyAdmin
Hi guys,
I'm having a problem importing data from a CSV or SQL file to MySQL database, in my source file I have latin characters like á, é, í, ó, ú and ñ, for example Administración, but once the data has been imported, it apears with ? for example Administraci?n.
Is there any way to import the data exactly as the source file?
Thank you so much.
MySQL ServerPHP
Last Comment
Marco Gasi
8/22/2022 - Mon
Marco Gasi
Is your database character encoding set to utf-8?
Member_2_6479049
ASKER
Yes it is.
Member_2_6479049
ASKER
I also changed the collation to utf8_spanish2_ci but doesn't work
When I open the source file it start with the query lines but I dont' see any line to change or to check the encoding.
Member_2_6479049
ASKER
Wait a minute,
Maybe I can see the problem.
Member_2_6479049
ASKER
Done :)
You know what Marco, the source file was created by exporting the table with data or only data to a csv or sql file, and is when I got the problem, so instead of exporting the data, Now I used backup data and I can see the coding, and now my data is good.
Sorry, if I hadn't replied but I was away.
Anyway, I'm glad you solved the issue but I don't understand because you have downgraded my answer: after all the problem was the one I had pointed to, isn't it? I ask this because downgrading an answer is how to say "Yes, the comment has been useful but it was incomplete, the expert ha been negligent, the solution was just partially working..." and so on.
Good luck with your project
Cheers