Storing & Displaying Chinese characters [at the same time]
Posted by:
Gregori M
Date: January 12, 2012 08:41AM
Hi,
I'm a newbie in this issue.
I have a form on a web. The web is coded with UTF8 and it has different languages.
I've been able to write with Chinese characters with this form and display this characters afterwards from the database. So the problem is not displaying this characters in my website.
My problem, or what I would like to do is, that when I check the data directly with MySqlAdmin client, Chinese symbols aren't there. They are coded in hexadecimal (I guess). This field in my database is coded in UTF8. (I tried with utf8_general_ci and utf8_unicode_ci and other utf8 and the result is the same)
If I change in mysqladmin the collate character to gb2312 or gb2312_chinese_ci, and then I edit the field and I write chinese characters in it, I can modify the field and I can store it with the chinese charecters. But then, the website doesn't display correctly the chinese field.
I would like to be able to show the chinese characters in the website and store chinese characters in the database at the same time (is it possible??) because I want to export this database afterwards.
I'm using a MySql5.5 + PHP
Thank you so much for your help.
Subject
Views
Written By
Posted
Storing & Displaying Chinese characters [at the same time]
4905
January 12, 2012 08:41AM
2437
January 14, 2012 03:52PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.