People will often encounter Chinese garbled situation? HTML Chinese garbled problem how to adjust?
- < tag name Lang = Lang >-Specific language types
- The Lang property can specify the language type of the element within the label range. English lang= "en", Chinese lang= "zh", Japanese lang= "ja".
In general, you will choose to specify English
Garbled Reason:
1, different encoding content mixed: HTML garbled is due toHTML encodingThe problem shines (commongb2312with theUtf-8two encoded content at the same time the presence of the photo)
2. HTML encoding is not set:<meta http-equiv= "Content-type" content= "text/html; charset=utf-8" />not set, Utf-8 is set here
3. Edit HTML using Notepad: Editing HTML directly with Notepad is also easy to encode HTML code garbled
I use the sublime, recommended to use some editor to do notepad++, sublime and the like, can reduce garbled.
Avoid HTML garbled The fundamental problem is the encoding, a set of coding tags, two use the DW software to edit (modify) The Web page file, three program development when the data is called from the database to be consistent with the HTML encoding. This can reduce or completely avoid the HTML encoding garbled problem.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
HTML garbled how the problem