Quantcast
Channel: PTC Community: Message List - Arbortext
Viewing all articles
Browse latest Browse all 3717

Re: Anyone tackled PE and UTF-8?

$
0
0

Found the right combination:

 

Read the E3ApplicationRequest object with:

final String req_XML_string_2 = new String(req.getParameter("p2").getBytes("iso-8859-1"), "UTF-8");

 

and write the file with:

 

Writer writer_2 = new OutputStreamWriter(new FileOutputStream("D:\\UTF8Output_2.txt"), "UTF-8");

BufferedWriter fout_2 = new BufferedWriter(writer_2);

fout_2.write(req_XML_string_2);

fout_2.close();


Viewing all articles
Browse latest Browse all 3717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>