Android Question Problem in simple library compiler

Hello.
When I use Persian letters in a Java class and I want to compile it, unfortunately it gives this error

java:6: error: unmappable character for encoding Cp1252
private static final String[] teens = {"ده", "یازده", "دوازده", "سیزده", "چهارده", "پانزده", "شانزده", "Ù‡Ù?ده", "هجده", "نوزده"};

Does it not support Persian letters?
 
Try to convert the source code files encoding to CP1252. You can do it with Notepad++.
I am using this code

private static final String[] units = {"", "یک", "دو", "سه", "چهار", "پنج", "شش", "هفت", "هشت", "نه"};

but I get this error when compiling with slc.

.java:16: error: unmappable character for encoding Cp1252
private static final String[] units = {"", "یک", "دو", "سه", "چهار", "پنج", "شش", "Ù‡Ù?ت", "هشت", "نه"};

I even made those changes in Notepad, encoding to CP1252.
 
Upvote 0
Top