0

How to print Russian in java?

I want to print Russian alphabet in java but meet problems I store Russian letter in char variable and iterate letters with for loop It says "unmappable character for encoding Cp1252" any solutions? https://code.sololearn.com/cp81WbR7S3rt/?ref=app

14th Sep 2017, 3:30 AM
EricWu2
4 odpowiedzi
+ 3
char c1 = 'A'; char c2 = 'a'; Rewrite on then with that (What I mean It is invalid) (Cus Of russian language used two characters in one alphabet)
14th Sep 2017, 3:32 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 2
T too much: public class Program { public static void main(String[] args) { String a = "б";//208 177 String b = "в";//208 178 for(int i=0;i<255;++i){ System.out.print( (char)(208) ); System.out.println( (char)(Character.codePointAt(a,1)+i) ); } } } That's it
14th Sep 2017, 4:10 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar