Hi Vincent,

thanks for your quick answer, I solved the problem.
No I have another little problem.
--------
 public void streamsvg(){
      try
      {

filename = mydb.getLanguageName(mydb.getSelectedLanguage())+".svg";
boolean useCSS = true;
Writer console = new OutputStreamWriter(System.out, "UTF-8");
Writer file = new FileWriter(filename);
root = svgdoc.getDocumentElement();
// writes the files out
out.getRoot(root);
out.stream(root, console, true);
System.out.println("written");


        out.stream(root, file, true);
        System.out.println("file written");
      }
        catch(Exception ex){}

      }
-----

I use a FileWriter to stream into a file, is there a chance to tell the FileWriter to encode in "UTF-8", like for the standard output, otherwise it uses "Mac-Roman"
and Adobe Illustrator can't read that


thanks a lot

Georg


>Hello Georg, > >After you used the getRoot method, the 'content' of the SVGGraphics2D >has been moved over to your doc2's document element and is no longer >contained in the SVGGraphics2D internal DOM structures. > >What you could do is stream method on SVGGraphics2D that takes an >Element parameter and pass your doc2's document element. > >Vincent. --



Georg Apitz

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WALS Project
Executive Programmer

Max Planck Institute for Evolutionary Anthropology
Inselstrasse 22
04103 Leipzig
Germany
Phone: +49 (0) 341 99 52 - 257
Telefax: +49 (0)341 99 52 - 119

[EMAIL PROTECTED]
www.eva.mpg.de
www.ge-org.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-- ######################################## [EMAIL PROTECTED] www.ge-org.com

Unser Leben ist das, wozu es unser Denken macht.
########################################


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



Reply via email to