The default encoding of many files is ISO-8859-1, while the default encoding of the Chinese operating system is gb18030, the project code established in this workspace is gb18030. our commonly used encoding is UTF-8, this provides better
2.6.5. ANSI character encoding and Windows 1252In order to support English and Western European characters, Windows designed a code that corresponds to the code page number 1252, which is called Windows 1252.The design of Windows 1252 is a reference
The Russian windows-1251 encoding is similar to that of gb2313 and gb18030, but is only used in this region.
The difference is that Windows-1251 uses single-byte encoding in Russian, while the latter uses double-byte encoding in Chinese.
The KOI8-R
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
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
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
Python back-end write download file, this time there was this errorlatin-1 codec cant encode characters in position 42-48:ordinal not in range256What to do:Check cause: Found file name has Chinese name, so cause error, encoding is LATIN-1 encoding,
Unicodeencodeerror: ' latin-1 ' codec can ' t encode character
"Unicodeencodeerror: ' latin-1 ' codec can ' t encode character ..."
This was because mysqldb normally tries to encode Everythin to latin-1. This can is fixed by executing
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.