2012-01-26 3 views
0

これはうまくいけば非常に単純な質問ですが、多くのグーグルが答えを見つけていません!HTMLページ(Unicode付き)にUnicodeスクライブ文字を書いてください。

Webページ(PDF description of Extended-D)に設定されたLatin Extended-DのUnicode文字を、Extended-DをサポートするJunicodeを使用して表示したいとします。

私が表示したいコードは「A760 LATIN CAPITAL LETTER VY」です。

これが完全な形で私のページです:

<!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> 

そして、これは私のスタイルシートは、次のようになります。私がチェックしているとJunicodeが正しくロードされている

@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; 
} 

。しかし、最初のUnicode文字はasとして正しく表示されますが、2番目の文字ではページ上にリテラル&#A760が表示されます。

これをUnicode拡張D文字A760として表示するにはどうすればよいですか?

答えて

1

私はあなたが16進数に変更することがあると思う:

&#xA760; 
+0

感謝を!それは行方不明だった。 – Richard

関連する問題