2012-01-26 26 views
0

這是一個非常簡單的問題,但很多谷歌搜索都沒有找到答案!在HTML頁面(使用Junicode)編寫Unicode抄寫字符?

我想使用支持Extended-D的Junicode在網頁(PDF description of Extended-D)上顯示來自Latin Extended-D集的Unicode字符。

我想展示的代碼是「A7​​60拉丁文大寫字母」。

這是我的網頁全:

<!DOCTYPE html> 
<html lang="en"> 
<head> 
    <meta charset="utf-8" /> 
    <title>Font Experiments</title> 
    <link rel="stylesheet" type="text/css" href="css/style.css" /> 
</head> 
<body id="home"> 
    &#8166; 
    &#A760; 
</body></html> 

這是我的樣式表的樣子:

@font-face { 
    font-family: 'Junicode'; 
    src: url('../fonts/junicode-regular-webfont.eot'); 
    src: url('../fonts/junicode-regular-webfont.eot?#iefix') format('embedded-opentype'), 
     url('../fonts/Junicode.woff') format('woff'), 
     url('../fonts/Junicode.ttf') format('truetype'), 
     url('../fonts/junicode-regular-webfont.svg#JunicodeRegular') format('svg'); 
    font-weight: normal; 
    font-style: normal; 
} 
body { 
    font-family: junicode, gentium, caslon roman, serif; 
} 

我已經確認並Junicode被正確加載。但是,雖然第一個Unicode字符正確顯示爲「ῦ」,但對於第二個字符,我只能在頁面上看到文字&#A760

我該如何指出這應該顯示爲Unicode Extended-D字符A760?

回答

1

我認爲你必須改變爲十六進制:

&#xA760; 
+0

謝謝!那是失蹤的一步。 – Richard