Jump to content

JRXmlWriter and encoding


Recommended Posts

By: Wolfgang - javabreak

JRXmlWriter and encoding

2003-04-25 06:57

Hi,

 

I have the following problem.

 

All my xml-Report-Files are iso-8859-1 encoded, because I use some special german-characters..

This works fine, but when I use JRXmlWriter.java to wirte the XML-File (JasperEdit uses this) then the header

will be set to <?xml version="1.0" encoding="UTF-8"?>, this is hardcoded.

When I try to load this File with JRXmlLoader I get the following error.

invalid byte 1 of 1-byte UTF-8 sequence.

In the posting http://sourceforge.net/forum/message.php?msg_id=1638851

Teodord recommended to use encoding iso-8859-1.

Should the XmlWriter not use the same enconding as the Loader?

What is the best encoding for the special characters?

 

Tanks

 

Wolfgang

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...