Hi Georg,

Georg A. wrote:
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



I would do what the FileWriter documentation says:


"FileWriter:

Convenience class for writing character files. The constructors of this class assume that the default character encoding and the default byte-buffer size are acceptable. To specify these values yourself, construct an OutputStreamWriter on a FileOutputStream. "

Vincent.


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



Reply via email to