JasperReports Plugin: East European characters not printing

Questions and answers on developing, deploying and using plugins and JavaBeans

JasperReports Plugin: East European characters not printing

Postby Bernd.N » Mon Jul 11, 2016 10:54 am

The alphabets of east european countries have a lot of diacritical characters or even completely different characters (Russian).
Polish: ą / Ć / ć / ę / Ł / ł / ń / Ó / ó / Ś / ś / Ź / ź / Ż / ż
Czech: Á / á / Č / č / Ď / ď / É / é / Ě / ě / Í / í / Ň / ň / Ó / ó / Ř / ř / Š / š / Ť / ť / Ú / ú / Ů / ů / Ý / ý / Ž / ž
Russian: Ђ / Ѓ / Є / Ѕ / І / Ї / Ј / Љ / Њ / Ћ / Ќ / / Ў / Ў / А / Б / В / Г / Д / Е / Ж / З / И / Й / К / Л / М / Н / О / П / Т / У / Ф / Х / Ц / Ч / Ш / Щ / Ъ / Ы / Ь / Э / Ю / Я / а / б / в / г / д / е / ж / з / и / й / к / л / м / н / о / п
They are used widespread in first names, surnames, company names, addresses, article descriptions etc.
We use iReport 5.5 to create our printable forms and reports.
Inside iReport, those characters print fine in the preview.

However when the Servoy Jasper Report Plugin 5.5.0 prints them in the running application to a PDF file, a lot of those special characters will not show.
Russian characters will even not print at all. Same is true for Chinese signs like 艾普瑟轮.

We tried also to use the latest version Servoy Jasper Report Plugin 6.2.0 which did not work either.
We use Servoy 7.4.5 on the server and postgreSQL with UTF-8 coding.
The attached picture shows which characters will not print.

I created a case today under https://support.servoy.com/browse/SVY-10129
Attachments
diacritical_characters_examples.jpg
diacritical_characters_examples.jpg (167.41 KiB) Viewed 10922 times
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Could someone test this please?

Postby Bernd.N » Sat Jul 16, 2016 12:46 pm

Could someone who uses the Servoy JasperReports Plugin and is printing a text field with it, invest a minute and try to print the following characters?
I would like to know if others have the same problem.

I found out meanwhile that for us, characters below UTF-codes U+00FF will print fine, but not UTF-codes after, details here in JIRA:
https://support.servoy.com/browse/SVY-10129

Polish ą / Ć / ć / ę / Ł / ł / ń / Ó / ó / Ś / ś / Ź / ź / Ż / ż
Czech Á / á / Č / č / Ď / ď / É / é / Ě / ě / Í / í / Ň / ň Ó / ó / Ř / ř / Š / š / Ť / ť / Ú / ú / Ů / ů / Ý / ý / Ž / ž
Russian Ђ / Ѓ / Є / Ѕ / І / Ї / Ј / Љ / Њ / Ћ / Ќ / / Ў / Ў / А / Б / В / Г / Д / Е / Ж / З / И / Й / К / Л / М / Н / О / П / Т / У / Ф / Х / Ц / Ч / Ш / Щ / Ъ / Ы / Ь / Э / Ю / Я / а / б / в / г / д / е / ж / з / и / й / к / л / м / н / о / п
Turkey  / â / Ç / ç / Ğ / ğ / İ / i / I / ı / Î / î / Ö / ö / Ô / ô / Ş / ş / Ü / ü / Û / û
China / 艾普瑟轮 /
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: JasperReports Plugin: East European characters not prin

Postby kwpsd » Sat Jul 16, 2016 7:26 pm

Hi, Bernd.

I used Jasper Studio 6.2.0.final and JR plug-in 6.0.0, but the results are the same as yours:

Result when run in Jasper Studio:
character_test_studio.png
character_test_studio.png (78.57 KiB) Viewed 10847 times


Result when run in Servoy using JR plugin:
character_test_plugin.png
character_test_plugin.png (53.58 KiB) Viewed 10847 times


I hope this helps!
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

Re: JasperReports Plugin: East European characters not prin

Postby Bernd.N » Mon Jul 18, 2016 9:51 am

Thanks a lot, Kim!
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: JasperReports Plugin: East European characters not prin

Postby Bernd.N » Tue Jul 26, 2016 3:20 pm

The servoy team just told me that it can be resolved by creating a font extension for JasperReports.
Details in the case under this link:

https://support.servoy.com/browse/SVY-10129
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: JasperReports Plugin: East European characters not prin

Postby Bernd.N » Sat Sep 17, 2016 11:09 am

We still can not resolve this.

Is nobody else using JasperReports to print output in countries like Poland, Czechia, Slowakia, Turkey, Russia or China?
Because if there is anybody, he/she would have faced the same problem as we do.
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Workaround found with Viewer

Postby Bernd.N » Tue Sep 20, 2016 5:04 pm

Hooray, we got a solution from the Servoy Team:
So far we created a PDF right away with plugins.jasperPluginRMI.runReport(), and that leads to the missing character issue.
But when calling the JasperViewer (by submitting the outputType parameter plugins.jasperPluginRMI.OUTPUT_FORMAT.VIEW), the diacritical characters will show up fine (except chinese characters, but that needs another font I guess).
However when you try to save the view to a PDF file, the characters are gone again. That can be solved with the workaround of printing to a previously installed PDF printer.
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: JasperReports Plugin: East European characters not prin

Postby Harjo » Wed Sep 21, 2016 1:59 pm

we create a font_extension.jar in jasperReport. IN jasperreport you can import your fonts (and also say embed in pdf!)
than that font-extension.jar needs to be included with several other jars, into the jnlp (for smart-client)

here you can find some more info about that: https://www.servoyforge.net/projects/se ... ease_notes
It's a bit old, but still valid and working!
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: JasperReports Plugin: East European characters not prin

Postby Bernd.N » Wed Sep 21, 2016 3:09 pm

Hi Harjo,
I think that is what Gabor told us to do on our ticket https://support.servoy.com/browse/SVY-10129, and we followed the instructions there, but could not get another result (see ticket).
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Solution

Postby Bernd.N » Wed Sep 21, 2016 6:36 pm

Ok, Gary got it now:
Turned out the problem was the PDF Encoding setting for the Font that we used on the report. Before exporting the Font as a jar and installing it in the “servoy_jasperreports” plugin folder, we needed to set the PDF Encoding to “Identity-H”.
We found the solution to the problem in this article:
http://jasperstarter.cenote.de/de/unicode-pdf-export.html

Thanks to all who helped!

iReportScreenshot.png
iReportScreenshot.png (327.48 KiB) Viewed 10581 times
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 7 guests

cron