Link to home
Start Free TrialLog in
Avatar of Member_2_6479049
Member_2_6479049

asked on

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.
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Is your database character encoding set to utf-8?
Avatar of Member_2_6479049
Member_2_6479049

ASKER

Yes it is.
I also changed the collation to utf8_spanish2_ci but doesn't work
ASKER CERTIFIED SOLUTION
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm sorry Marco but how can i check that?

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.
Wait a minute,

Maybe I can see the problem.
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.

Thank you Marco.
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