Jump to content
Changes to the Jaspersoft community edition download ×

JRXML Compilation Error - Chinese - UTF-8


2004 IR Help

Recommended Posts

By: Joseph Kulandai - kulandai

JRXML Compilation Error - Chinese - UTF-8

2005-11-21 01:34

Hi All,

I am getting compilation error while trying to compile a JRXML file with chinese characters as report labels.

I have saved the file in UTF-8 format. XML encoding is UTF-8.

 

Code Segment:

 

<?xml version="1.0" encoding="UTF-8"?>

......

......

<textField>

<reportElement positionType="Float" x="150" y="20" width="400" height="50"/>

<textElement>

<font size="24"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[部门 çš„ç»ç†]]></textFieldExpression>

</textField>

........

........

 

Compilation Error:(Using ANT build)

[jrc] net.sf.jasperreports.engine.JRException: Errors were encountered whe

n compiling report expressions class file:

[jrc] 1. Syntax error on token "???", delete this token

[jrc] value = (java.lang.String)(?? ???);

[jrc] <->

[jrc] 2. Syntax error on token "???", delete this token

[jrc] value = (java.lang.String)(?? ???);

[jrc] <->

[jrc] 3. Syntax error on token "???", delete this token

[jrc] value = (java.lang.String)(?? ???);

[jrc] <->

[jrc] 3 errors

 

[jrc] at net.sf.jasperreports.engine.design.JRAbstractCompiler.compile

Report(JRAbstractCompiler.java:164)

[jrc] at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileR

eport(JRDefaultCompiler.java:131)

 

Can you please help me on this.

Thank You.

Regards,

Joseph Kulandai

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...