How to set the default character encoding in Java

1 Answer

0 votes
public class MyClass {
    public static void main(String args[]) {
        
        System.setProperty("file.encoding", "UTF-8");
    }
}
  
  
  
/*
run:
     

     
*/

 



answered Nov 13, 2023 by avibootz

Related questions

1 answer 189 views
2 answers 92 views
1 answer 196 views
2 answers 177 views
177 views asked Jan 3, 2022 by avibootz
...