I am trying to paste Hindi characters in an array with elements like String[] arr = {"???? ?????? ??","???? ?????? ??"}; but its giving error i.e. "some characters cannot be mapped using "Cp1252" character encoding" while saving this.
String[] arr = {"???? ?????? ??","???? ?????? ??"};
"some characters cannot be mapped using "Cp1252" character encoding"
Switch your text encoding to UTF-8.
In Eclipse go to Window -> Preferences, select General -> Workspace. From the Text file encoding dropdown, select UTF-8.
1.4m articles
1.4m replys
5 comments
57.0k users