dataExport in pdf does not support Chinese

UI Components for JSF
Post Reply
zhang.liwen
Posts: 2
Joined: 12 Jul 2010, 04:50

12 Jul 2010, 05:03

If there is Chinese words in datatable,when I export the data in pdf, the Chinese words can't come up in the page. Who can solve this problem.Help!!!

snailxu
Posts: 5
Joined: 12 Jul 2010, 05:57

12 Jul 2010, 07:58

Got the same problem. It seems the encoding attribute in dataExporter does not resolve this problem.

The source code I used looks like below:

<h:commandLink>
<p:graphicImage value="/images/pdf.png" />
<p:dataExporter type="pdf" target="tbl" fileName="cars" encoding="GBK"/>
</h:commandLink>

zhang.liwen
Posts: 2
Joined: 12 Jul 2010, 04:50

12 Jul 2010, 08:04

I add the attribute encoding="gbk",but the problem also does not solve. Help!!!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 37 guests