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.
MySQL ServerPHP

Avatar of undefined
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
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ASKER CERTIFIED SOLUTION
Marco Gasi

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Member_2_6479049

ASKER
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.
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.

Thank you Marco.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Marco Gasi

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