I have the below code which creates a 1252 codepage file, but I need a UTF-8 file. Can someone guide me, how to get a UTF-8 file out of this?
var res = new java.io.FileWriter( new java.io.File( path )),
text = new java.lang.String( src || "" );
res.write( text, 0, text.length() );
res.flush();
res.close();