I need to use some UTF8 characters in the String in some java files. I think I need to change the encoding of file to UTF8 Eclipse for them to work.
I would like to know how to set the default encoding to UTF8?
also, I would like to ask , after setting the encoding to UTF8, will the actual physical java file contains the UTF8 BOM header.
In Eclipse, go to
Preferences>General>Workspaceand selectUTF-8as the Text File Encoding.This should set the encoding for all the resources in your workspace. Any components you create from now on using the default encoding should all match.