I am Convert a XSLT to PDF with Chinese characters in it. I am using Fonet.dll and csharp . I have added Chinese language's i.e. ZH and ZHT in the regional languages under control panel.
I am following the code example to generate the pdf
The XSLT is as follows
<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" >
<xsl:template match="/" >
<fo:root xml:lang="en"
xmlns:fo="http://www.w3.org/1999/XSL/Format" >
<fo:layout-master-set>
<fo:simple-page-master page-height="350mm"
page-width="271mm"
master-name="PageMaster">
<fo:region-body />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="PageMaster">
<fo:flow flow-name="xsl-region-body" >
<fo:block font-family="MingLiU">
hello- 您好
</fo:block>
<fo:block font-family="MS Mincho"
>カニ入りスープなしの麺をください。</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>
The Chinese characters do not appear at all I all set the encoding to encoding="gb2312" but it did not make any difference.
Is there are a way I can embed the fonts in the XSLT so that the Chinese characters appear.
See Question&Answers more detail:os