Souad
Souad

Reputation: 5084

change default charset of JVM to UTF-8

My default charset of JVM is windows-1252. that's what i get when I run this code :

System.out.println(Charset.defaultCharset());

I want to change it to UTF-8. How to do it in eclipse?

Upvotes: 0

Views: 1078

Answers (1)

Juned Ahsan
Juned Ahsan

Reputation: 68715

I hope you mean for your console output. If yes then Go to Run Configuration -> Common and select from the encoding drop down as UTF-8. Here is the picture to help you:

enter image description here

Upvotes: 1

Related Questions