R
Rafal \(sxat\)
Hello
how change charset for this string from cp1250 (Windows) to UTF-8
all Program in java is default running in UTF-8
File f = new File("C:/myfile.txt);
FileReader rd = new FileReader(f);
System.out.println("GET - encoding: " + rd.getEncoding()); /* this is
always utf-8 why?*/
char[] buf = new char[(int)f.length()];
rd.read(buf);
return new String(buf).replaceAll("[\n\r]*", "");
myfile is charset cp1250
how change String from cp1250 to utf 8 ?
regards
Rafal
how change charset for this string from cp1250 (Windows) to UTF-8
all Program in java is default running in UTF-8
File f = new File("C:/myfile.txt);
FileReader rd = new FileReader(f);
System.out.println("GET - encoding: " + rd.getEncoding()); /* this is
always utf-8 why?*/
char[] buf = new char[(int)f.length()];
rd.read(buf);
return new String(buf).replaceAll("[\n\r]*", "");
myfile is charset cp1250
how change String from cp1250 to utf 8 ?
regards
Rafal