The Chinese printing is normal, and the Chinese display of the exported PDF file is garbled

1 Answer 31 Views
Report Viewer - HTML5
胖哥
Top achievements
Rank 1
胖哥 asked on 16 Sep 2021, 03:27 AM

hi

The Chinese printing is normal, and the Chinese display of the exported PDF file is garbled,How to solve it

胖哥
Top achievements
Rank 1
commented on 16 Sep 2021, 05:10 AM

Print preview Chinese is also garbled

1 Answer, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 20 Sep 2021, 09:46 AM

Hi 胖哥,

We have experienced similar issues before. Mostly, they were related to the used font.

When you preview the report in the browser, it may substitute the fonts that cannot be resolved with default ones, hence the characters may still be displayed correctly, although with another font. The font when rendering in PDF is treated in a different way, especially, if you render the report in Linux. This includes also the printing from the Html5 Viewer, which is essentially rendering in PDF. In these cases, the reporting engine relies on the GDI+ routines to provide the correct Unicode characters from the font, specified in the report definition.

I would recommend using a font that supports all characters from the Chinese Unicode Range. Here is a list of fonts that cover all or most of the Chinese characters - you can try some of them and see if the issue will be resolved.

Regards,
Todor
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
Report Viewer - HTML5
Asked by
胖哥
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or