This is a migrated thread and some comments may be shown as answers.

Export(to pdf) does not support Chinese characters?

11 Answers 2313 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
randall su
Top achievements
Rank 1
randall su asked on 25 Dec 2009, 01:54 AM
hello
I have a report and have Chinese characters  when i choose the export to pdf . the pdf  is generated but the Chinese characters are  shown abnormal .

    eg: 
So, instead of what I would expect:
"δΈ­ζ–‡12"

I see this:
" τ€€€τ€€€12" 
is there a way to fix this?
randall

11 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 04 Jan 2010, 09:34 AM
Hi randall su,

The problem is most probably due to the font you have specified for the textbox items. This font should support all foreign characters you would be using in your report. For example you can change the font you use to MS Arial Unicode font, which supports wide varieties of characters. However note that Arial Unicode is around 23 Mb and by default the exported pdf file from the report would embed the whole font, so that it is readable on a machine that does not have it installed. This behavior however is controlled by the FontEmbedding device setting and can be changed to Subset or None. Specifying the Subset option will embed only font glyphs that are used, thus reducing output file size while maintaining portability, while specifying None would not embed that font at all (i.e. the user that is going to read that pdf should have Arial Unicode installed on his machine. You can learn more about altering these values from the Configuring Telerik Reporting Config Section help article.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Bob
Top achievements
Rank 1
answered on 17 Dec 2013, 05:30 PM
Steve (or whoever),

I have this problem with Reporting.  I have Chinese characters stored in the MS SQL database and when I create a report the characters display in the Web viewer correctly.  However, when I try to print or export to PDF the characters do not show properly.  If the characters show properly in the web application and in the viewer, does this mean that the Unicode font is installed on my machine?

Also, what can I set to have the PDF file generate the characters properly.

Thanks in advance.

Bob
0
Squall
Top achievements
Rank 1
answered on 19 Dec 2013, 02:43 PM
Hi, if you have set non unicode font the browsers fallback to an unicode font. However the PDF viewer can't do that, so you have to use unicode font like Arial Unicode MS.
0
Bob
Top achievements
Rank 1
answered on 19 Dec 2013, 04:41 PM
Squall,

I have changed the font for the individual text boxes in the Telerik report to use the unicode font.  When I generate the PDF for this report on my desktop in the IDE, the PDF does generate the proper chinese characters.  Also, when I run the web app and display the report locally on my desktop and create the PDF, it also generates the chinese characters.

However, when I deploy the web app on my server, the created PDF still does not generate the chinese characters properly.  I thought installing the unicode font on the server would solve the problem, but it hasn't.

Can you suggest something I might be missing here to get this to work?

Thanks in advance.

Bob
0
Stef
Telerik team
answered on 21 Dec 2013, 10:46 AM
Hi Bob,

Please take a look at our Font Requirements section in the Design Considerations for PDF Rendering help article.

I hope this information helps you.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

0
Bob
Top achievements
Rank 1
answered on 23 Dec 2013, 04:45 AM
Stef,

I have already looked at the documentation you suggested I read previously and I cannot garner anything further from this.  As I mentioned, the export to PDF works in development but when I publish to the server, the PDF does not export properly (even when running from my same desktop as the web client).

This is confusing to me.  Is there something that needs to be installed on the server for this to work properly?

Thanks in advance.

Bob
0
Stef
Telerik team
answered on 24 Dec 2013, 10:11 AM
Hello Bob,

Please test to restart the machine after installing the font, so it can be registered by the running application. For more details, please take a look at the following forum discussion: Install new font and need to restart the server.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

0
Bob
Top achievements
Rank 1
answered on 25 Dec 2013, 05:15 PM
Stef,

Thank you, restarting the server did the trick.  I thought I had already restarted but I guess not.

Thanks again!!

Bob
0
shehar
Top achievements
Rank 1
answered on 27 Jan 2017, 01:40 PM

i am using telerik reports and I have a issue of emojis. emojis are correctly display in Report viewer but when I export it to pdf they are not displaying correctly and shows square. i have "Arial Unicode MS" font installed on my machine. these emojis are correctly display in CSV, EXCEL. only have a problem with pdf.

Can any one help me.

0
Stef
Telerik team
answered on 27 Jan 2017, 01:45 PM
Hello shehar,

Please test embedding fully fonts in the PDF file to allow the preview on machine's lacking the custom font. Also verify the Unicode characters you use are supported by the applied font - Font Requirements.

For more details about the settings check Telerik Reporting Configuration Section and extensions Element.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
sayli
Top achievements
Rank 1
answered on 11 Aug 2017, 07:47 AM

Arial Unicode MS, Its worked, Thank you

 

Tags
General Discussions
Asked by
randall su
Top achievements
Rank 1
Answers by
Steve
Telerik team
Bob
Top achievements
Rank 1
Squall
Top achievements
Rank 1
Stef
Telerik team
shehar
Top achievements
Rank 1
sayli
Top achievements
Rank 1
Share this question
or