Recently caused by character encoding problems very headache, many encoding methods can be described as "familiar with the unknown", gb2312, ANSI, UTF-8, Unicode .... So calm down and study hard.
References:
Http://www.ruanyifeng.com/blog/2007/10
I believe you must have met, open a Web page, but show a heap of like garbled, such as "бїяазъся", "????????"? Remember the message header fields Accept-charset, accept-encoding, Accept-language, content-encoding, content-language in HTTP? And
Original: http://www.cnblogs.com/leesf456/p/5317574.htmlFirst, prefaceIn solving yesterday's problem, but also raised a lot of new questions, such as why to encode, the relationship between these encodings, such as the relationship between the Ascii,
What is a character set? What is encoding?
Character (Character) is the general name of words and symbols, including text, graphic symbols, mathematical symbols and so on.
A set of abstract characters is the character set (Charset).
Character
3-character encoding model
Programmers often face complex problems, and the simplest way to reduce complexity is to divide and conquer them. Peter Constable describes the four-layer model of Character encoding in his article "character set
In the past, I did not really have any in-depth research on character encoding. This learning is also due to a customer complaint. In short, the customer complaint is that when our gateway truncates the customer's SMS content, the text message is
ASCII, GB2312, GBK, UTF-8 encoding:
Original address: HTTP://HI.BAIDU.COM/PHPEASE/ITEM/F450B5CAEC143014505058FC
variable naming rules:
1. Variable names are case-sensitive (case-sensitive).
2. Must begin with a letter or underscore. Variable
1. Basic Knowledge
The information stored in the computer is represented by the binary number, and the English letters, Chinese characters, and other characters we see on the screen are the result after the binary number conversion. In general, the
1. Prerequisites1. character: the minimum unit of abstract text. It has no fixed shape (may be a font shape) and has no value. "A" is a character, and "€" (a symbol of the currency used by Germany, France, and many other European countries) is also
First, HTML entities1. What is an HTML entity?In HTMl, some characters are reserved. Less than (), the browser is mistaken for a labelIf you want to display reserved characters correctly, you must use the character entity (HTML entities) in the HTML
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.