Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

mysql migration, character set issues

Posted on 2011-02-13
4
Medium Priority
?
405 Views
Last Modified: 2012-05-11
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
Comment
Question by:young_buddha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 800 total points
ID: 34884232
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
 

Assisted Solution

by:young_buddha
young_buddha earned 0 total points
ID: 35010337
http://forums.mysql.com/read.php?10,276146,276328 worked for me.

Thanks for your answer.
0
 

Author Comment

by:young_buddha
ID: 35010368
i dint test rays solution..found something else that worked for me.

thanks
sid
0
 

Author Closing Comment

by:young_buddha
ID: 35045628
i dint test rays solution..found something else that worked for me.

thanks
sid
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question