thanks, it seems my encoding declaration has some problems.
Somebody could tell me what's the standard encoding declaration of svg file?
that's the one one gave me :
<?xml version='1.0' encoding="UTF-16" standalone ="no"?>
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 20010904//EN'
'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>
<svg width='21cm' height='15cm' viewBox='0 0 2100 1500'
xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>


the error I get is:

java.io.IOException: Character conversion error: "Malformed UTF-8 char -- is an XML encoding declaration missing?" (line number may be too low).

at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)

at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source)

at org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown Source)

at org.apache.batik.swing.svg.SVGDocumentLoader.run(Unknown Source)







From: Thomas E Deweese <[EMAIL PROTECTED]>
Reply-To: "Batik Users" <[EMAIL PROTECTED]>
To: Batik Users <[EMAIL PROTECTED]>
Subject: RE: re : just a couple of question
Date: Mon, 17 Feb 2003 07:27:33 -0500

>>>>> "ED" == Eric Delacroix <[EMAIL PROTECTED]> writes:

ED> I'm just trying to do the same as Claire, but the file I must
ED> reffer is on my hard disk.  I actually use setURI(String), but it
ED> seems the encoding of the file would be wrong (althought It can be
ED> displayed directly in my browser with adobe viewer).

    It looks to me like a typo in the file:

ED> java.io.UnsupportedEncodingException: UFT-16

    I suspect you want 'UTF-16' not 'UFT-16' (swap of 'F' & 'T').  I
suppose the Adobe viewer is being more accepting here (rightly or
wrongly).

    This is probably in the first line of the file.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

_________________________________________________________________



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to