Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

encode file to utf-8 in java

  String charset = "ISO-8859-1"; // or what corresponds
  BufferedReader in = new BufferedReader( 
      new InputStreamReader (new FileInputStream(file), charset));
  String line;
  while( (line = in.readLine()) != null) { 
    ....
  }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #encode #file #java
ADD COMMENT
Topic
Name
9+5 =