[#14531] - Not all special characters (UTF-8) are working when a pdf file is created

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

Currently I am using jasper report library version 6.20.0.
My scope was to support the following special characters (UTF-8) on pdf file creation.
Å,å,Ä,ä,Ö,ö,Å,å,Æ,æ,Ø,ø,Ü,ü,ẞ,ß,1

As you can see from the attached screenshot all characters are displayed correct apart from the capital Eszett (ẞ).

AttachmentSize
Image icon upper_ss_letter_missing.jpg22.63 KB
v6
jasper library
pcharizakis_1's picture
Joined: Jan 3 2023 - 11:46pm
Last seen: 1 month 3 days ago

1 Comment:

#1

You need to use a font extension with a font that includes a glyph for U+1E9E. For instance the latest version of the DejaVu fonts https://dejavu-fonts.github.io/

You can create the font extension in Jaspersoft Studio (make sure you set the Identity-H as PDF encoding and the Embed in PDF flag) and export it as a jar to be included in your application.

Note that JasperReports comes with a font extension jar that contains DejaVu fonts (https://search.maven.org/artifact/net.sf.jasperreports/jasperreports-fonts), but it's an older version of the fonts that do not cover U+1E9E.

Feedback