How to display UTF-8 character texts in a report


I want to display in a report generated with JasperReport APIs (5.5.1) text strigs stored in a database in an UTF-8 format.

Instead of a correct text, such as the french text "Accès Utilisateur"

  i obtain

"Accès Utilisateur"

what can I do to have the text correctly displayed?



francois.urbain's picture
Joined: Sep 18 2014 - 6:55am
Last seen: 3 weeks 1 day ago

1 Answer:

Have you installed external fonts supporting your character. Most characters not appearing correctly is with the fonts and not the encoding.


FYI, encoding is how a character is stored in a computer. Characters are stored as numbers and encoding is a mapping of characters to numbers. Fonts are how characters are actually displayed. If you don't use the fonts that includes the character you want to display, the character won't display properly.

hozawa's picture
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 11 months ago