Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Problem with national letters in BIRT 4.6.0-20160607 [Solved](National letter issue in custom app (birt as maven dependency))
Problem with national letters in BIRT 4.6.0-20160607 [Solved] [message #1792138] Thu, 12 July 2018 06:47 Go to next message
Sebastian Krupa is currently offline Sebastian KrupaFriend
Messages: 10
Registered: June 2018
Junior Member
Hi

I have problem with polish letters in my custom app which is using Birt runtime in version: 4.6.0-20160607
Dependency from pom.xml:
<dependency>
            <groupId>org.eclipse.birt.runtime</groupId>
            <artifactId>org.eclipse.birt.runtime</artifactId>
            <version>4.6.0-20160607</version>
</dependency>


Issue reveals it self by replacing our national letters with their ascii equivalents, and so ą becomes a, ł becomes l, ę -> e and so on

But in designer which is in version: Eclipse BIRT Designer Version 4.6.0.v201606072122 (at least i have this version in properties tab - "Create by" textbox) everything is fine, i mean that report rendered in html or pdf from Eclipse contains our international letters :)

You can see followed attachments to make it bit clear:
- birt-designer.png - this is screenshot form designer
- birt-viewer.png - this is screenshot form webviewer, contains our national letters
- birt-viewer-pdf.png - this is screenshot from webviewer but report has been exported to pdf
- birt-from-app.png - athis is screenshot from our custom app, look where arrow points -> no national letters :)


I set same paths to system fonts in our app and in BIRT Designer runtime fontsConfig_pdf (in eclipse plugin directory) like follows:

My app
            URL url = this.getClass().getResource("/birt/fontsConfig.xml");
            // Konfiguracja czcionek
            config.setFontConfig(url);

/birt/fontsConfig.xml
<?xml version="1.0" encoding="UTF-8"?>
<font>
    <font-aliases>
        <mapping name="serif" font-family="Arial" />
        <mapping name="sans-serif" font-family="Courier" />
        <mapping name="monospace" font-family="Helvetica" />
        <mapping name="cursive" font-family="Courier" />
        <mapping name="fantasy" font-family="Courier" />
    </font-aliases>
    
    <composite-font name="all-fonts" default="Arial">
    </composite-font>

    <font-paths>    
        <path path="/usr/share/fonts/msttcore" />
    </font-paths>

    <font-encodings>
        <encoding font-family="Arial" encoding="cp1250" />
        <encoding font-family="Courier" encoding="cp1250" />
        <encoding font-family="Helvetica" encoding="cp1250" />
    </font-encodings>
    
</font>


Birt Eclipse
[dev@dev plugins]$ grep -R msttcore  *
org.eclipse.birt.report.engine.fonts_4.4.2.v201410272105/fontsConfig_pdf.xml:        <path path="/usr/share/fonts/msttcore" />
org.eclipse.birt.report.engine.fonts_4.6.0.v201606072122/fontsConfig_pdf.xml:        <path path="/usr/share/fonts/msttcore" />



My platform is linux (centos) i'm using jdk 1.8 to run our app server and Eclipse BIRT Report Designer

[Updated on: Fri, 14 September 2018 16:08]

Report message to a moderator

Re: Problem with national letters in BIRT 4.6.0-20160607 [message #1792140 is a reply to message #1792138] Thu, 12 July 2018 06:57 Go to previous messageGo to next message
Sebastian Krupa is currently offline Sebastian KrupaFriend
Messages: 10
Registered: June 2018
Junior Member
Same situation is for EXCEL and WORD files.
Re: Problem with national letters in BIRT 4.6.0-20160607 [message #1793187 is a reply to message #1792140] Wed, 01 August 2018 10:09 Go to previous messageGo to next message
Sebastian Krupa is currently offline Sebastian KrupaFriend
Messages: 10
Registered: June 2018
Junior Member
Someone?
Re: Problem with national letters in BIRT 4.6.0-20160607 [message #1795106 is a reply to message #1793187] Fri, 14 September 2018 16:07 Go to previous message
Sebastian Krupa is currently offline Sebastian KrupaFriend
Messages: 10
Registered: June 2018
Junior Member
I found fix :). BIRT is working as expected but ... i'm using Sql server as DB which doesn't support UTF-8 in columns with text/varchar type. So change to ntext solved issue.
Previous Topic:Deploy BIRT runtime 4.8.0 to JDK7 failure
Next Topic:Problem with character encoding (?) [in app & in designer] [Solved]
Goto Forum:
  


Current Time: Thu Nov 15 01:49:27 GMT 2018

Powered by FUDForum. Page generated in 0.02662 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top