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

mysql migration, character set issues

hi,

i am in process of migrating a database to another server. The current db has default char set as latin1, and the collation for most tables and fields shows as latin1 as well when the structure of table is viwed.

We intend to be adding a few more languages to our db soon, so i wanted to convert the db to utf-8, which i have done by using alter table commands for tables as well as columns..the database was configured with utf-8 as default set.

any new data that i am saving in other languages seems to be fine however some characters in existing data seem to not not have been converted to utf-8...for example 'ü'  appears in tables instead of the actual umlaut (german)...how do i convert old data to utf-8 ?  (actually these characters were being stored as above even earlier, but when i retrieved them in php they appeared fine)
0
young_buddha
Asked:
young_buddha
  • 3
2 Solutions
 
Ray PaseurCommented:
What are the languages that you are adding?  UTF-8 encoding is not necessary for most Western languages.

You might consider using some combination of these PHP built-in functions:
http://www.php.net/manual/en/ref.mbstring.php
0
 
young_buddhaAuthor Commented:
http://forums.mysql.com/read.php?10,276146,276328 worked for me.

Thanks for your answer.
0
 
young_buddhaAuthor Commented:
i dint test rays solution..found something else that worked for me.

thanks
sid
0
 
young_buddhaAuthor Commented:
i dint test rays solution..found something else that worked for me.

thanks
sid
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

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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