CSS Chinese font Unicode encoding table, cssunicode
Set the font name in CSS and write Chinese directly. But in the file encoding (GB2312, UTF-8, etc.) does not match will produce garbled error.
To avoid these errors, you can use Unicode encoding to write the font name in CSS. If you use Unicode to write Chinese font names, the browser can correctly parse them.
For example:
Font-family: "\ 5FAE \ 8F6F \ 96C5 \ 9ED1", indicating to set the font to "".
Unicode encoding for common Chinese Fonts
Font Name |
English name |
Unicode encoding |
|
SimSun |
\ 5B8B \ 4F53 |
Xin |
NSimSun |
\ 65B0 \ 5B8B \ 4F53 |
Simhei |
SimHei |
\ 9ED1 \ 4F53 |
|
Microsoft YaHei |
\ 5FAE \ 8F6F \ 96C5 \ 9ED1 |
_ GB2312 |
KaiTi_GB2312 |
\ 6977 \ 4F53_GB2312 |
Shu |
LiSu |
\ 96B6 \ 4E66 |
Youyuan |
YouYuan |
\ 5E7C/5706 |
文 |
STXihei |
\ 534E \ 6587 \ 7EC6 \ 9ED1 |
Fine body |
MingLiU |
\ 7EC6 \ 660E \ 4F53 |
New body |
PMingLiU |
\ 65B0 \ 7EC6 \ 660E \ 4F53 |