Reference:Http://www.ruanyifeng.com/blog/2007/10/ascii_unicode_and_utf-8.htmlHttp://www.cnblogs.com/mjgforever/archive/2008/02/27/1083135.html1. ASCII codeWe know that inside the computer, all the information is ultimately represented as a binary
If you need to internationalize a website, you need to convert the code from GB2312 to UTF-8, which has a lot of problems to note, if not converted thoroughly, there will be a lot of coding problems appear!There are five main areas:One.. HTML page
I. HTML page UTF-8 encoding problem1. After head, add a line before title:
The order can not be wrong, be sure to
The title displayed may be garbled!
2.html file Encoding problem:
Click on the Editor's menu: "File"-> "Save As", you can see the
PHP page, MySQL database turn utf-8 garbled, Utf-8 coding problem Summary, Mysqlutf-8
Example one:
PHP page to UTF-8 encoding problem
1. Add a line at the beginning of the code: header ("Content-type:text/html;charset=utf-8");
2.PHP file Encoding
zyl910Today, UTF-8 strings are used more and more frequently. However, in VC, can not directly deal with the UTF-8 string, you have to specifically write UTF-8 and narrow strings, wide strings, TCHAR strings to convert each other code. Not only is
Unicode and Utf-8 in Python
The history of the character set mentioned in this article is a brief explanation of the relationship between Unicode and Utf-8, briefly summarizing:Utf-8 and Utf-16, Utf-32 is a class, the realization of the
Example One:
PHP page to UTF-8 encoding problem
1. Add a line at the beginning of the code: header ("Content-type:text/html;charset=utf-8");
2.PHP file Encoding Problems Click the Editor Menu: "File", "Save As", you can see the current file
Example one:
PHP page UTF-8 encoding problem
1. In the code begins to add a line: Header ("Content-type:text/html;charset=utf-8");
2.PHP file Encoding Problem click the Editor's menu: "File"-> "Save As", you can see the current file encoding to
The problem of character encoding seems to be very small, often overlooked by technical staff, but it can easily lead to some puzzling problems. Here is a summary of the character encoding of some of the popular knowledge, I hope to be helpful to
The common problem is that after BOM encoding is used, an error occurs in script execution or an error occurs when filestream is used to read and convert data to XML."
Markup in the document following the root element must be well-formed .".
I.
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.