sadegh nordeh Member Jan 31, 2025 #1 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 = {"ده", "یازده", "دوازده", "سیزده", "چهارده", "پانزده", "شانزده", "Ù‡Ù?ده", "هجده", "نوزده"}; Click to expand... Does it not support Persian letters?
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 = {"ده", "یازده", "دوازده", "سیزده", "چهارده", "پانزده", "شانزده", "Ù‡Ù?ده", "هجده", "نوزده"}; Click to expand... Does it not support Persian letters?
Erel B4X founder Staff member Licensed User Longtime User Feb 2, 2025 #2 Try to convert the source code files encoding to CP1252. You can do it with Notepad++. Upvote 0
sadegh nordeh Member Feb 2, 2025 #3 Erel said: Try to convert the source code files encoding to CP1252. You can do it with Notepad++. Click to expand... I am using this code private static final String[] units = {"", "یک", "دو", "سه", "چهار", "پنج", "شش", "هفت", "هشت", "نه"}; Click to expand... but I get this error when compiling with slc. .java:16: error: unmappable character for encoding Cp1252 private static final String[] units = {"", "یک", "دو", "سه", "چهار", "پنج", "شش", "Ù‡Ù?ت", "هشت", "نه"}; Click to expand... I even made those changes in Notepad, encoding to CP1252. Upvote 0
Erel said: Try to convert the source code files encoding to CP1252. You can do it with Notepad++. Click to expand... I am using this code private static final String[] units = {"", "یک", "دو", "سه", "چهار", "پنج", "شش", "هفت", "هشت", "نه"}; Click to expand... but I get this error when compiling with slc. .java:16: error: unmappable character for encoding Cp1252 private static final String[] units = {"", "یک", "دو", "سه", "چهار", "پنج", "شش", "Ù‡Ù?ت", "هشت", "نه"}; Click to expand... I even made those changes in Notepad, encoding to CP1252.
Erel B4X founder Staff member Licensed User Longtime User Feb 2, 2025 #4 Can you upload one of the source files? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 2, 2025 #5 And the best option is to not include such things in your library. Implement it in B4X directly. Upvote 0