Forum How do I...?

Which fonts need to be installed for utf-8 encoding?

nathenharvey
I'm trying to get some Chinese characters to print in a PDF doc.

Here's a small snip of my html:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
        <head>
                <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
         </head>
         <body>
           <div class="desc"><p>Z&uuml;rich</p> <p>技能</p>
           <div class="location">
        Zürich 技能、
                </div>
         </body>
</html>


The output from Prince is:

Zürich
??
Zürich ???


With messages like the following in the log:
msg|wrn||no glyphs for character U+6280, fallback to '?'
msg|wrn||no glyphs for character U+80FD, fallback to '?'



I have the msttcorefonts installed. What other fonts must I have installed for this to work properly?

OS: RedHat Linux

Thanks!
nathenharvey
Seems the forum software is encoding some things for me.

<p>技能</p>


is the following in the HTML source (without the spaces)

< p > & # 2 5 2 1 6 ; & # 3 3 0 2 1 ; < / p > 
mikeday
You need to have some Chinese fonts installed and reference them using the font-family property. On Linux the Arphic fonts (ttf-arphic-* packages) are a good choice, such as "AR PL KaitiM GB" for simplified Chinese or "AR PL KaitiM Big5" for traditional characters.