• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 320
  • Last Modified:

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.
0
elm9999
Asked:
elm9999
  • 5
  • 3
1 Solution
 
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
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now