Questions about UTF-8 and GB2312 (please answer the next brother)

Source: Internet
Author: User
Do you usually use the station is UTF-8 or GB2312?

If a Web site with jquery and AJAX is UTF-8 or GB2312 better?

Because I'm doing some simple projects, GB2312 encounter AJAX will be garbled

I think most of the domestic stations use GB2312.





Reply to discussion (solution)

Decisive utf-8!
Database stored utf8_general_ci Character set

At least ensure that the front and back of the same bar;
I always use the UTF8, as if not much difference, I only know utf8 accounted for 3 bytes, gbk accounted for 2 bytes. Always use the UTF8 to be duly completed!

1, people of course should be the preferred national standards
2, with utf-8 Chinese equivalent is GBK (not gb2312)
3, store a utf-8 Chinese characters need 3 bytes, store a GBK Chinese characters only need 2 bytes
I don't think people are rich enough to be more extravagant than foreigners.
4, whether you are using Utf-8 or GBK, characters also only know people can understand
Although Chinese is the working language of the United Nations, the foreigner can not read much
5. AJAX is sent by default in Utf-8 encoding, and can recognize any character set according to the received language declaration.
6. The browser will uniformly convert any character set received to the Unicode character set
In summary, I tend to use GBK encoding (in fact I do)

  • 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.