Coding knowledge Summary
The earliest encoding is ASCII, which is only 1-127, expressed in one byte. And the first bit of this byte is 0.Later, many countries found that ASCII characters are too few. For example, Chinese characters cannot
Recently encountered a lot of UTF-8 problems, encountered someone summed up, summed up the good, directly turned.
Source: http://www.flashcat.com.cn/blog/read.php? 20
If a website needs to be internationalized, it needs to convert the code from
Web applications must meet the needs of multiple languages. Users in different countries should be able to enter characters in their own languages, and Web applications should be able to display pages in multiple languages according to different
PHP garbled problem, UTF-8 garbled problem is more common, through the following method basically can solve php garbled problem, indeed summed up good
I. HTML page to UTF-8 encoding problem1. add a line before the title after the head:
The order
PHP garbled problem, UTF-8 garbled problem is more common, through the following method basically can solve php garbled problem, indeed summed up good
I. HTML page to UTF-8 encoding problem1. add a line before the title after the head:
The order
html5 title HTML5 's content! HelloI wrote it in notepad, after the save on the Web page ran unexpectedly garbled. Replace with GB2312 to display Chinese correctly.html5 title HTML5 's content! HelloBut after all, the standards are Different. Still
DOCTYPE HTML>HTML>Head>MetaCharSet= "UTF-8">title>HTML5 's titletitle>Head>Body>P>HTML5 's content! HelloP>Body>HTML>I wrote it in Notepad, after the save on the Web page ran unexpectedly garbled. Replace with GB2312 to display Chinese
I. HTML page to UTF-8 encoding problem1. Add a line before the title after the head:
The order must be in
The title may be garbled!
2.html file encoding:
Click the Editor menu: "file"-> "Save as", you can see the current file encoding, make sure
I. HTML page to UTF-8 encoding problem1. Add a line before the title after the head:The order must be inThe title may be garbled!2.html file encoding:Click the Editor menu: "file"-> "Save as", you can see the current file encoding, make sure the
UTF-8 contains the characters that all countries in the world need to use, is international code, strong universality. UTF-8 encoded text can be displayed on browsers that support UTF8 character sets in countries. For example, if the UTF8 code, the
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.