encoding="Cp1252"

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Andre

encoding="Cp1252"

Post by Andre » Thu Feb 13, 2003 6:05 pm

Hi

I am using JFreeChart to generate SVG output which works great except that I get encoding="Cp1252" all the time when what I want is encoding="UTF-8". Does anyone know how to set the encoding ?

Thanks
Andre

Arnaud

Re: encoding="Cp1252"

Post by Arnaud » Thu Feb 13, 2003 7:24 pm

Hello,

Try this :
java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream( 8192 );
java.io.Writer svgOutput = new java.io.OutputStreamWriter( baos, "UTF-8" );

Regards,
Arnaud

Locked