Answers for "how to make a text to utf-8 encoding"


how to convert utf-16 file to utf-8 in python

with open(ff_name, 'rb') as source_file:
  with open(target_file_name, 'w+b') as dest_file:
    contents =
Posted by: Guest on January-01-2021

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) { 
Posted by: Guest on June-26-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language