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.
elm9999Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Marco GasiFreelancerCommented:
Is your database character encoding set to utf-8?
0
elm9999Author Commented:
Yes it is.
0
elm9999Author Commented:
I also changed the collation to utf8_spanish2_ci but doesn't work
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Marco GasiFreelancerCommented:
It's a character encoding collision for sure. You have to chek if the file is correctly encoded too and the same for each table in the database...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
elm9999Author Commented:
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.
0
elm9999Author Commented:
Wait a minute,

Maybe I can see the problem.
0
elm9999Author Commented:
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.
0
Marco GasiFreelancerCommented:
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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.