function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
hoomelhoomel 

Chinese characters in PDF

Hello,

 

I am having some trouble with chinese characters in PDF generation.

I do not know any chinese, but the customer gave me a document to copy the text excerpts from and I have already done that. What strikes me as odd is that most of the characters show up, but some just don't.

Wherever I want to insert them in the page, they are not shown in the PDF.

 

Is there any reason why this is happening?

This is one of the text excerpts that do not show up anywhere on the page: 设备租用报价

 

Maybe I have to set some enconding parameters in the header?

 

Thanks for any advice.

 

Best Regards,

Marc

Best Answer chosen by Admin (Salesforce Developers) 
ShoalShoal

<div style="font-family: Arial Unicode MS;font-weight: 900; ">
<apex:outputText >设备租用报价</apex:outputText>
</div>

All Answers

ShoalShoal

<div style="font-family: Arial Unicode MS;font-weight: 900; ">
<apex:outputText >设备租用报价</apex:outputText>
</div>

This was selected as the best answer
hoomelhoomel
Thanks, Shoal. Arial Unicode MS is the main font type I already have in my page, but in some cases, I simply forgot to put it in the style. Ouch.
ShoalShoal

Are you chinese? Where do you work?

hoomelhoomel

No, I am not Chinese.

 

I am working in Germany. This was a translation of a contract document that needed to be set up in Salesforce.

Mekyush JariwalaMekyush Jariwala

If i am render page as PDF then its working.But when i m using Blob.toPDF(String) method it is not working

How to show chinese character in pdf using Blob.toPDF() ?