[Question] how to store Korean data to the database and display it correctly in the database

Source: Internet
Author: User
A multi-language web project requires Chinese, English, and Korean support. Chinese and English are successfully completed. Korean is under development ......, However, if a problem occurs, the Korean language stored in the database cannot be correctly displayed.

Because the customer does not need to use the Korean interface to operate the background, the charset is still gb2312, Which is tested at this time.
The input Korean data is displayed in the database as follows: & #51116; & #47308; & #48516; & #47448; with such garbled code, the background can smoothly read and display the data, however, the front-end cannot call database data.

Then I thought it could be a charset problem. Then I changed it to charset = EUC-KR. In the database, Chinese characters are garbled: "flat-force Qian Fu Nong" ("Other-signs" in Chinese). In this case, data can be normally called in the front and back ends.

So: I don't know how to store Korean data, so I 'd like to ask you here. Thank you.

[Only go to the homepage for one day, and I will withdraw it]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.