I'm trying Batik's rasterizer and everything is working fine. This is the Java line I'm running to convert the svg to a png :
java -jar batik-rasterizer.jar -m image/png samples/barChart.svg
And this is the content of the SVG file
http://svn.apache.org/repos/asf/xmlgraphics/batik/trunk/samples/barChart.svg
But if I change the content of the svg (the bar label) from "Shoe" to "ShoÉ". It fails with this message
org.apache.batik.transcoder.TranscoderException: null Invalid byte 2 of 2-byte UTF-8 sequence
Now, I know I can simply use the unicode equivalent and it will work. But I'm looking for a solution similar to the html version of adding the line below.
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
I also tried adding the next line before and after the "!DOCTYPE svg..." but i still get the same error.
<?xml version="1.0" encoding="UTF-8" ?>
Any suggestions would be appreciated.