• Post Reply Bookmark Topic Watch Topic
  • New Topic

verify encoding

 
Per Lovdinger
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I execute an application on unix-aix that should produce a file
with windows encoding.
This is because the file should be used for an windows application.
The code look something like this:
===============================================================
FileOutputStream fos = new FileOutputStream("write1.txt");
BufferedWriter out1
= new BufferedWriter(new OutputStreamWriter(fos,"Cp1252"));
out1.write("Line1");
out1.newLine();
out1.write("Line 2");
out1.close();
===============================================================
This executes fine, but how can I verify that the file created
is actually encoded as Cp1252 ?
I suspect that it's not !

kind regards
Per Lovdinger

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!