2006 IR Open Discussion Posted August 18, 2006 Share Posted August 18, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now