Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » BIRT does not parse all Chinese characters in HTML(An XML datasource contains HTML with Chinese characters encoded like , w)
BIRT does not parse all Chinese characters in HTML [message #1668723] Thu, 12 March 2015 16:11 Go to next message
Reiner Killet is currently offline Reiner KilletFriend
Messages: 1
Registered: August 2013
Junior Member
Dear BIRT power users,

an HTML contains Chinese characters encoded as &#[DECIMAL CODE];
This HTML is displayed in the report through a dynamic text tag.

PROBLEM:
Some of the chinese characters like 65292, 39640, 33267, 36164 etc.
are not unencoded. In the report you can see the character code Crying or Very Sad .

It makes no difference when I change the output format form HTML to PDF. This seems to be a problem when parsing the HTML input.

I'm currently using 4.3.0 and 4.3.1. The problem occurs with the runtime as well as with the RCP designer.

Any idea?
I uploaded the template and the XML datasource.

Thanks for answering.
Reiner

[Updated on: Fri, 13 March 2015 14:18]

Report message to a moderator

Re: BIRT does not parse all Chinese characters in HTML [message #1702474 is a reply to message #1668723] Wed, 22 July 2015 14:36 Go to previous message
Mica J. Block is currently offline Mica J. BlockFriend
Messages: 4
Registered: July 2009
Junior Member
It is actually a bug in one of the Open Source resource files BIRT uses - Tidy.jar

This should fixed in the next release.

A fast work around is using the new library. Repackage it into the report.engine :

Steps:

Locate the plugin on:
For iHub:
Location to place is: \iHub\Jar\BIRT\platform\plugins

For BDPro:
Location to place is:: \BDPro\eclipse\plugins

For OS BIRT:
\eclipse\plugins

This is the jar to change the library: org.eclipse.birt.report.engine_X.X.X.vX.jar

Open with file extractor and replace with a newer version:

lib\Tidy.jar (attached newer version)

To ensure BDPro or OS BIRT, use clean in ini
add -clean on first line of eclipse.ini file
  • Attachment: Tidy.zip
    (Size: 230.68KB, Downloaded 106 times)

[Updated on: Wed, 22 July 2015 14:38]

Report message to a moderator

Previous Topic:HTML Entities in Private Font Area
Next Topic:Report works fine in RCP but loaded into application errors out. MySQL 5.5 and BIRT 3.7.1
Goto Forum:
  


Current Time: Thu Apr 25 19:37:43 GMT 2024

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

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

Back to the top