thanks LordOfPorts but this script is working for wordpress only as I belive..
is there any scripts please?
Main Topics
Browse All TopicsI have a MySQL database and I have many tables that the Character Set is windows-1256, and I would like to use PHP and Ajax so I have to converte all my tables stracture and data to utf8.. Is there any software to convrte my database to utf8??
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The command will be the same as it is working on the mySQL database. Before you proceed however it is very important that you backup your database or even better created a copy of your database that you can experiment upon before you do anything with your real database. Then see http://dev.mysql.com/doc/r
Just to confirm, the characters are not displaying correctly on the web page or within the database itself?
Please try to following two approaches within the web page code:
1. In your PHP page right after you connect to the database and before you do a SELECT, add the following two lines:
mysql_query( "SET NAMES UTF8");
mysql_query( "SET CHARACTER SET UTF8");
2. If the first approach does not work, try using the iconv function http://us.php.net/manual/e
echo iconv("ISO-8859-1", "UTF-8", $text_from_database)
Business Accounts
Answer for Membership
by: LordOfPortsPosted on 2009-08-04 at 08:32:25ID: 25014858
The following article might be helpful to you http://codex.wordpress.org / Convertin g_Database _Character _Sets
By the way, PHP and AJAX will work with Windows-1256 so you do not "have to convert" but UTF-8 will encompass a greater set of characters. Either way the article above provides instructions on how to convert your database character set encoding.