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

Trouble with special character

2 Answers 90 Views
ClientExportManager
This is a migrated thread and some comments may be shown as answers.
Jean Luc Farnaud
Top achievements
Rank 1
Jean Luc Farnaud asked on 03 Apr 2015, 02:59 PM

Hi,

I am using the ClientExportManager to export to Pdf the HTML content of a Div .

The pdf is generated correctly but the special characters (é,è,€) have been replace ( by Ø,Ł,‹).

I have tried to to set a different fonts but i get the same result every time.

The characters are correctly displayed on the page but are changed on the pdf.

Is there any way to force a set of characters ?

How can I fix this problem ?

 

Thanks for your time .

 

2 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 08 Apr 2015, 10:02 AM
Hello Jean Luc,

In order to correctly export the special characters, you should include the needed fonts and add them to the ClientExportManager's PdfSettings.Fonts. In addition, you need to set this font for the html element of the page.

In the attachment you can find a simple project, demonstrating the above suggested implementation.

Regards,
Nencho
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Jean Luc Farnaud
Top achievements
Rank 1
answered on 08 Apr 2015, 01:15 PM

Thanks a lot, it fixed it.

I was not forcing the font on the Html element.

Regards.

Tags
ClientExportManager
Asked by
Jean Luc Farnaud
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Jean Luc Farnaud
Top achievements
Rank 1
Share this question
or