By: Brett Hammerlindl - brett_h
encoding "UTF-8" does not match actual one ..
2002-07-25 14:02
I am having trouble getting started with JasperReports
I have had a parse exception that I suspect comes
from the DTD processing.
Thoughts?
Here is the error stack =======
org.xml.sax.SAXParseException: Declared encoding "UTF-8" does not match actual one "Cp1252"; this might not be an error.
at org.apache.crimson.parser.Parser2.warning(Parser2.java:3148)
at org.apache.crimson.parser.Parser2.readEncoding(Parser2.java:2946)
at org.apache.crimson.parser.Parser2.maybeTextDecl(Parser2.java:2802)
at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2880)
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1206)
at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:498)
By: Brett Hammerlindl - brett_h
RE: encoding "UTF-8" does not match actual one ..
2002-07-29 14:57
I am still stuck; can anyone help?
By: Teodor Danciu - teodord
RE: encoding "UTF-8" does not match actual one ..
2002-08-05 01:40
Hi,
You have to specify an appropriate encoding type
for your XML file.
Apparently, you use the default, which is UTF-8,
but your file contains special characters in
a different encoding (Latin 1).
Modify the first line of you XML file like this:
<?xml version="1.0" envoding="ISO-8859-1"?>
I hope this helps.
Teodor
By: Marc - knorki
RE: encoding "UTF-8" does not match actual on
2002-12-04 03:57
I have a similar problem here
while calling CompileManager.compileReport();
org.xml.sax.SAXParseException: Declared encoding "UTF-8" does not match actual one "ISO-8859-15"; this might not be an error.
??!!!
i already changed my encoding in the template file
<?xml version="1.0" encoding="ISO-8859-1"?>
but that did not help either
By: Marc - knorki
RE: encoding "UTF-8" does not match actual on
2002-12-04 03:56
I have a similar problem here
while calling CompileManager.compileReport();
org.xml.sax.SAXParseException: Declared encoding "UTF-8" does not match actual one "ISO-8859-15"; this might not be an error.
??!!!
i already changed my encoding in the template file
<?xml version="1.0" encoding="ISO-8859-1"?>
but that did not help either
By: Teodor Danciu - teodord
RE: encoding "UTF-8" does not match actual on
2002-12-05 00:24
Hi,
Try this:
<?xml version="1.0" encoding="ISO-8859-15"?>
Thank you,
Teodor
By: Marc - knorki
RE: encoding "UTF-8" does not match actual on
2002-12-05 03:49
yes i also did that ...... but the error was hiodden somewhere else
and i am sure that ii didn't use and 8859-15 chars :-)
the problem was that i didn't specify the SAX Parser by setting
System.setProperty("org.xml.sax.driver", org.apache.xerces.parsers.SAXParser");
so the system used an other XML Parser and that one threw the Exception (that took me a while to find out:-))
after adding the SystemProperty it worked without errors
Knorki
By: Marc - knorki
RE: encoding "UTF-8" does not match actual on
2002-12-05 03:50
yes i also did that ...... but the error was hiodden somewhere else
and i am sure that ii didn't use and 8859-15 chars :-)
the problem was that i didn't specify the SAX Parser by setting
System.setProperty("org.xml.sax.driver", org.apache.xerces.parsers.SAXParser");
so the system used an other XML Parser and that one threw the Exception (that took me a while to find out:-))
after adding the SystemProperty it worked without errors
Knorki
By: harikrishnan - harishharish
RE: encoding "UTF-8" does not match actual one ..
2003-05-08 03:29
This error depends upon the classpath variable u have set.
The same problem i had.
Just change your classpath i.e you classpath variable point to only the jars which have been given by jasper alone.
You should not point to any others parsers like JAXP and some other stuffs,or fop etc.
If u change that i'm sure it'll work
By: harikrishnan - harishharish
RE: encoding "UTF-8" does not match actual one ..
2003-05-08 03:30
This error depends upon the classpath variable u have set.
The same problem i had.
Just change your classpath i.e you classpath variable point to only the jars which have been given by jasper alone.
You should not point to any others parsers like JAXP and some other stuffs,or fop etc.
If u change that i'm sure it'll work
By: Teodor Danciu - teodord
RE: encoding "UTF-8" does not match actual one ..
2003-05-07 06:50
Hi,
Now there is a patch for this bug available here:
https://sourceforge.net/tracker/index.php?func=detail&aid=733882&group_i...
I hope it does not come too late for you.
Thank you,
Teodor
By: Danny Liu - dsyliu
RE: encoding "UTF-8" does not match actual one ..
2003-06-03 09:21
Does this new patch requires jdk1.4 to compile?
By: Teodor Danciu - teodord
RE: encoding "UTF-8" does not match actual on
2003-06-03 23:12
Hi,
No, but the 0.4.6 version does require you to have
a JAXP 1.1 compatible XML parser in your classpath.
You can use the supplied xerces jars.
The requirements page will be updated.
Thank you,
Teodor
By: Vincent Hikida - vhikida
RE: encoding "UTF-8" does not match actual one ..
2003-06-15 16:14
Hi,
I seem to be getting the same problem. I downloaded jasperreports-0.4.6.jar to run JasperDesignViewer against an report xml file and got the same problem. I may also have an older version of jasperreports.jar. When I point classpath to it, I get org.xml.sax.driver not specified instead.
In order to use the above patch, do I need to downlad the latest source and recompile or can I just download the appropriate jar files? It seems the patch that is noted above is just java source.
Vincent
By: Teodor Danciu - teodord
RE: encoding "UTF-8" does not match actual on
2003-06-16 01:12
Hi,
You need to get the project ZIP file containig all the source files.
Then you copy the Java file trom the patch into
the src directory of the project and launch "ant jar"
from the project root directory (you need Ant).
In the /dist directory you'll have a patched version of
the JasperReports jar.
Thank you,
Teodor
By: Vincent Hikida - vhikida
RE: encoding "UTF-8" does not match actual one ..
2003-06-16 08:04
Thanks Teodor!
Hopefully I have time today, otherwise it may be a while before I can get around to it.
encoding "UTF-8" does not match actual one ..
2002-07-25 14:02
I am having trouble getting started with JasperReports
I have had a parse exception that I suspect comes
from the DTD processing.
Thoughts?
Here is the error stack =======
org.xml.sax.SAXParseException: Declared encoding "UTF-8" does not match actual one "Cp1252"; this might not be an error.
at org.apache.crimson.parser.Parser2.warning(Parser2.java:3148)
at org.apache.crimson.parser.Parser2.readEncoding(Parser2.java:2946)
at org.apache.crimson.parser.Parser2.maybeTextDecl(Parser2.java:2802)
at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2880)
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1206)
at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:498)
By: Brett Hammerlindl - brett_h
RE: encoding "UTF-8" does not match actual one ..
2002-07-29 14:57
I am still stuck; can anyone help?
By: Teodor Danciu - teodord
RE: encoding "UTF-8" does not match actual one ..
2002-08-05 01:40
Hi,
You have to specify an appropriate encoding type
for your XML file.
Apparently, you use the default, which is UTF-8,
but your file contains special characters in
a different encoding (Latin 1).
Modify the first line of you XML file like this:
<?xml version="1.0" envoding="ISO-8859-1"?>
I hope this helps.
Teodor
By: Marc - knorki
RE: encoding "UTF-8" does not match actual on
2002-12-04 03:57
I have a similar problem here
while calling CompileManager.compileReport();
org.xml.sax.SAXParseException: Declared encoding "UTF-8" does not match actual one "ISO-8859-15"; this might not be an error.
??!!!
i already changed my encoding in the template file
<?xml version="1.0" encoding="ISO-8859-1"?>
but that did not help either
By: Marc - knorki
RE: encoding "UTF-8" does not match actual on
2002-12-04 03:56
I have a similar problem here
while calling CompileManager.compileReport();
org.xml.sax.SAXParseException: Declared encoding "UTF-8" does not match actual one "ISO-8859-15"; this might not be an error.
??!!!
i already changed my encoding in the template file
<?xml version="1.0" encoding="ISO-8859-1"?>
but that did not help either
By: Teodor Danciu - teodord
RE: encoding "UTF-8" does not match actual on
2002-12-05 00:24
Hi,
Try this:
<?xml version="1.0" encoding="ISO-8859-15"?>
Thank you,
Teodor
By: Marc - knorki
RE: encoding "UTF-8" does not match actual on
2002-12-05 03:49
yes i also did that ...... but the error was hiodden somewhere else
and i am sure that ii didn't use and 8859-15 chars :-)
the problem was that i didn't specify the SAX Parser by setting
System.setProperty("org.xml.sax.driver", org.apache.xerces.parsers.SAXParser");
so the system used an other XML Parser and that one threw the Exception (that took me a while to find out:-))
after adding the SystemProperty it worked without errors
Knorki
By: Marc - knorki
RE: encoding "UTF-8" does not match actual on
2002-12-05 03:50
yes i also did that ...... but the error was hiodden somewhere else
and i am sure that ii didn't use and 8859-15 chars :-)
the problem was that i didn't specify the SAX Parser by setting
System.setProperty("org.xml.sax.driver", org.apache.xerces.parsers.SAXParser");
so the system used an other XML Parser and that one threw the Exception (that took me a while to find out:-))
after adding the SystemProperty it worked without errors
Knorki
By: harikrishnan - harishharish
RE: encoding "UTF-8" does not match actual one ..
2003-05-08 03:29
This error depends upon the classpath variable u have set.
The same problem i had.
Just change your classpath i.e you classpath variable point to only the jars which have been given by jasper alone.
You should not point to any others parsers like JAXP and some other stuffs,or fop etc.
If u change that i'm sure it'll work
By: harikrishnan - harishharish
RE: encoding "UTF-8" does not match actual one ..
2003-05-08 03:30
This error depends upon the classpath variable u have set.
The same problem i had.
Just change your classpath i.e you classpath variable point to only the jars which have been given by jasper alone.
You should not point to any others parsers like JAXP and some other stuffs,or fop etc.
If u change that i'm sure it'll work
By: Teodor Danciu - teodord
RE: encoding "UTF-8" does not match actual one ..
2003-05-07 06:50
Hi,
Now there is a patch for this bug available here:
https://sourceforge.net/tracker/index.php?func=detail&aid=733882&group_i...
I hope it does not come too late for you.
Thank you,
Teodor
By: Danny Liu - dsyliu
RE: encoding "UTF-8" does not match actual one ..
2003-06-03 09:21
Does this new patch requires jdk1.4 to compile?
By: Teodor Danciu - teodord
RE: encoding "UTF-8" does not match actual on
2003-06-03 23:12
Hi,
No, but the 0.4.6 version does require you to have
a JAXP 1.1 compatible XML parser in your classpath.
You can use the supplied xerces jars.
The requirements page will be updated.
Thank you,
Teodor
By: Vincent Hikida - vhikida
RE: encoding "UTF-8" does not match actual one ..
2003-06-15 16:14
Hi,
I seem to be getting the same problem. I downloaded jasperreports-0.4.6.jar to run JasperDesignViewer against an report xml file and got the same problem. I may also have an older version of jasperreports.jar. When I point classpath to it, I get org.xml.sax.driver not specified instead.
In order to use the above patch, do I need to downlad the latest source and recompile or can I just download the appropriate jar files? It seems the patch that is noted above is just java source.
Vincent
By: Teodor Danciu - teodord
RE: encoding "UTF-8" does not match actual on
2003-06-16 01:12
Hi,
You need to get the project ZIP file containig all the source files.
Then you copy the Java file trom the patch into
the src directory of the project and launch "ant jar"
from the project root directory (you need Ant).
In the /dist directory you'll have a patched version of
the JasperReports jar.
Thank you,
Teodor
By: Vincent Hikida - vhikida
RE: encoding "UTF-8" does not match actual one ..
2003-06-16 08:04
Thanks Teodor!
Hopefully I have time today, otherwise it may be a while before I can get around to it.
0 Answers:
No answers yet