Question : Can not display chinese character after transfer load database to remote server

Hi,

I have a chinese drupal site in my local machine, everything looks fine. Then I move my db file to my remote web server, all the chinese character can not display correctly. My guess is that, there must be an encoding issue, but i just not sure what cause this. Below is the steps i make to migrate my db file over:

1. In my local box, open up mysql admin in the browser, then select my drupal database, click export tag on the top. then click SQL as the file type, also check the "save as file" checkbox, then click Go.

2. Upload the new file to the web server in the db_file folder. By the way, i am using Godaddy. Then login to godaddy, open up the admin page and click restore to use the new upload db file.

3. Everything looks fine after the db has restored in the backend. The issue is when browsing the page, all chinese character on the live site does not display correctly.


So to simplify my problem, this chinese db works fine locally, but after upload the db to the remote server, the live site cannt display correctly event the code file are the same.

Hope some one can help out. Many thanks.

Answer : Can not display chinese character after transfer load database to remote server

1 - Symptom: the characters that should display fine as Chinese characters don't; they were working fine on the local compteur (presumably using as a default a Chinese character page code).

2 - Possible causes:
a - The database transfer was in fact fine, just the display process is wrong
b - The database transfer was not fine (and maybe the display process is wrong as well)

3 - You need to explore first the possible cause 2a
a - if you change the caharacter page code in you browser, is there any change in the display of THESE characters? when looking at the HTML source of the page, what is the character code used by the page?
b - using phpMyAdmin, add data to one table, using some chinese characters. can you display them correctly? if no, does changing the character page code for the "data frame" of phpmyadmin change that?

My own experience (but with russian and greek, not chinese, characters) is that cause 2a has a very high probablity....
Random Solutions  
 
programming4us programming4us