Webpage garbled from: This article link: CSS Chinese font garbled solution http://www.51xuediannao.com/html+css/htmlcssjq/700.html
Web page garbled processing:
CSS Chinese font garbled solution :
Unify the CSS encoding and HTML page encoding. If the HTML page is Utf-8, CSS, JS also unified into Utf-8 encoding. If the HTML page is gb2312, CSS, JS also unified into gb2312 encoding.
< Head > < http-equiv= "Content-type" Content= "text/html; charset=utf-8" /></head>
Another way to avoid Chinese garbled is to write Chinese characters in English, for example: font-family: "Song Body"; font-family: "Microsoft Jas Black"; Corresponding: font-family: "SimSun"; font-family: "Microsoft yahei"; CSS file added
Body {font-family:"SimSun"}
More fonts in the following table (Note: The best use of the Web page Arial, boldface, Microsoft ya Black, and some common English fonts, other unsafe Chinese fonts do not use.) )
Chinese name |
English name |
Unicode |
Unicode 2 |
Mac OS |
Chinese fine Black |
Stheiti Light [Stxihei] |
\534e\6587\7ec6\9ed1 |
Chinese fine Black |
Chinese blackbody |
Stheiti |
\534e\6587\9ed1\4f53 |
Chinese blackbody |
Chinese italic |
Stkaiti |
\534e\6587\6977\4f53 |
Chinese italic |
XXFarEastFont-Chinese song Body |
Stsong |
\534e\6587\5b8b\4f53 |
XXFarEastFont-Chinese song Body |
XXFarEastFont-Imitation |
Stfangsong |
\534e\6587\4eff\5b8b |
XXFarEastFont-Imitation |
Lai Hei Pro |
Lihei Pro Medium |
\4e3d\9ed1 Pro |
Lai Hei Pro |
Lison Pro |
Lisong Pro Light |
\4e3d\5b8b Pro |
Lison Pro |
Mark in italics |
Biaukai |
\6807\6977\4f53 |
Mark in italics |
Apple in Black |
Apple ligothic Medium |
\82f9\679c\4e3d\4e2d\9ed1 |
Apple in Black |
Apple Li Fine Song |
Apple Lisung Light |
\82f9\679c\4e3d\7ec6\5b8b |
Apple Li Fine Song |
Windows |
New Fine Ming Body |
PMingLiU |
\65b0\7ec6\660e\4f53 |
New Fine Ming Body |
Fine Ming Body |
MingLiU |
\7ec6\660e\4f53 |
Fine Ming Body |
Mark in italics |
Dfkai-sb |
\6807\6977\4f53 |
Mark in italics |
Blackbody |
Simhei |
\9ed1\4f53 |
Blackbody |
Song Body |
SimSun |
\5b8b\4f53 |
Song Body |
New song Body |
Nsimsun |
\65b0\5b8b\4f53 |
New song Body |
Imitation |
Fangsong |
\4eff\5b8b |
Imitation |
Italics |
Kaiti |
\6977\4f53 |
Italics |
Imitation _gb2312 |
fangsong_gb2312 |
\4eff\5b8b_gb2312 |
Imitation _gb2312 |
Italics _gb2312 |
kaiti_gb2312 |
\6977\4f53_gb2312 |
Italics _gb2312 |
Microsoft is in black |
Microsoft Jhenghei |
\5fae\x8f6f\6b63\9ed1\4f53 |
Microsoft is in black |
Microsoft Ya-Black |
Microsoft Yahei |
\5fae\8f6f\96c5\9ed1 |
Microsoft Ya-Black |
Office |
Lishu |
Lisu |
\96b6\4e66 |
Lishu |
Young Circle |
Youyuan |
\5e7c\5706 |
Young Circle |
Chinese fine Black |
Stxihei |
\534e\6587\7ec6\9ed1 |
Chinese fine Black |
Chinese italic |
Stkaiti |
\534e\6587\6977\4f53 |
Chinese italic |
XXFarEastFont-Chinese song Body |
Stsong |
\534e\6587\5b8b\4f53 |
XXFarEastFont-Chinese song Body |
XXFarEastFont-Chinese in song |
Stzhongsong |
\534e\6587\4e2d\5b8b |
XXFarEastFont-Chinese in song |
XXFarEastFont-Imitation |
Stfangsong |
\534e\6587\4eff\5b8b |
XXFarEastFont-Imitation |
Founder Shu Body |
Fzshuti |
\65b9\6b63\8212\4f53 |
Founder Shu Body |
Founder Arial |
Fzyaoti |
\65b9\6b63\59da\4f53 |
Founder Arial |
Chinese Choi Wan |
Stcaiyun |
\534e\6587\5f69\4e91 |
Chinese Choi Wan |
Chinese Amber |
Sthupo |
\534e\6587\7425\73c0 |
Chinese Amber |
Chinese script |
Stliti |
\534e\6587\96b6\4e66 |
Chinese script |
XXFarEastFont-Xingkai |
Stxingkai |
\534e\6587\884c\6977 |
XXFarEastFont-Xingkai |
XXFarEastFont-Chinese New Wei |
Stxinwei |
\534e\6587\65b0\9b4f |
XXFarEastFont-Chinese New Wei |
Browser upgrade Web browsing variants:
<!--parsing websites with IE9--
<meta name= "renderer" content= "Ie-comp"/>
<meta name= "renderer" content= "Ie-stand"/>
<meta http-equiv= "x-ua-compatible" content= "Ie=9"/>
Web page garbled, browser upgrade page deformation