anilselvaa / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

Chinese characters not displayed properly #377

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use load_font.php to convert ms arial unicode/firefly/dejavu  
2. Use converted fonts as css font-face. Add meta tag to support utf-8 (<meta 
http-equiv="Content-Type" content="text/html; charset=UTF-8" />)
3. Use this html with Chinese unicode:

<strong>Mid-Autumn Festival (Zh&#333;ngqi&#363; Ji&eacute;)</strong>
<p>
Also known as the Moon Festival, the Mid-Autumn Festival is marked by eating 
tasty yu&egrave;b&#464;ng (moon cakes), gazing at the full moon and gathering 
together with relatives for family reunions. It is also a traditional holiday 
for lovers. It takes place on the 15th day of the eighth lunar month.
</p>

What is the expected output? What do you see instead?
Question mark is displayed instead of chinese characters.

What version of the product are you using? On what operating system?
dompdf_0-6-0_beta2
windows xp / xampp

Original issue reported on code.google.com by rexestre...@gmail.com on 9 Nov 2011 at 4:28

GoogleCodeExporter commented 9 years ago
So you've followed the steps outlined in the Unicode How-to 
(http://code.google.com/p/dompdf/wiki/CPDFUnicode)?

Typically a question mark indicates that the text was converted from Unicode to 
Windows ANSI. Can you post a complete sample document so we can look for any 
possible problems in the HTML?

FYI, I was able to achieve the correct rendering with the Firefly Sung font: 
http://eclecticgeek.com/dompdf/debug.php?identifier=cfbec170bfa48e82fc8775021d67
eed2

Original comment by eclecticgeek on 7 Dec 2011 at 3:18

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 24 May 2013 at 3:00