+ Start a Discussion
jlojlo 

Fusion Charts in Visualforce page + Byte Order Mark?

Has anyone had any success supporting multiple languages with Fusion Charts?

 

I need to add a "Byte Order Mark" to an xml file generated via Visualforce. This sample JSP code shows how to do it using an OutputStream, but I can't figure out how to do the same thing using Visualforce or Apex.

response.setContentType( "text/xml; charset=UTF-8" );
OutputStream outs = response.getOutputStream();
outs.write( new byte[]{(byte)0xEF, (byte)0xBB, (byte)0xBF} );
outs.flush();
// Now write your XML data to output stream

 

 

There are some more samples about how to add a BOM in other languages here: http://www.fusioncharts.com/do cs/Contents/SpChar.html

 

Anand@SAASAnand@SAAS

Can you store the "XML with the bytes you have below" in a document  and then load that XML and start appending to it before sending to the Visual force page? This assumes the stream of bytes are fixed.