Tuesday, May 20, 2014

How to use Special Chars in Java/Eclipse

It can be solved by setting encoding in eclipse:
1st way:
At the menu select File-->Properties and then at the "Text file encoding" section: Select Other radio, Select UTF-8 from combo -> Lastly click OK button
2nd way:
Right click on specific file (say Test.java) -> Properties. In Text file encoding section: Select Other radio, Select UTF-8 from combo -> Lastly click OK button
3rd way:
If you want to make this change for all your project go at Window-->Preferences--> General--> Workspace . In Text file encoding section: Select Other radio, Select UTF-8 from combo -> Lastly click OK button
http://stackoverflow.com/questions/200691/how-to-use-special-chars-in-java-eclipse

No comments:

Post a Comment