posted 21 years ago
I had problem when I needed to save text out to a file in UTF-8,
Internally all character data is represented as unicode but I had much problem saving to file as unicode. Got round it like this:
File f= new File(folder, fName);
InputStream in = new FileInputStream(f);
System.setProperty("file.encoding", "UTF-8");
String encoding = System.getProperty("file.encoding"); Reader r= new BufferedReader(new InputStreamReader(in, encoding));
Does that help?