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)