Cyrillic Font and the Scanner Object [message #991245] |
Tue, 18 December 2012 01:24 |
seth halp Messages: 1 Registered: December 2012 |
Junior Member |
|
|
I'm a relatively new programmer and was just working on a small pet project for conjugating verbs via the internet. I am using Java on a Mac with Eclipse. My problem is in this code:
Scanner s = new Scanner(System.in, "MACCYRILLIC");
String line = s.nextLine();
System.out.println(line);
Essentially, when I input a Russian word such as ходить the Scanner then converts it into something like вАУвИЮвАУ¬µ and makes it unusable. Is there some sort of language package that I can install so that Eclipse can read Russian using System.in. I've looked around a lot and am not sure what to do. Btw, when I do System.out.print(ходить) it works fine, it is mainly an issue with the Scanner object. Any help would be appreciated, thanks!
|
|
|
Powered by
FUDForum. Page generated in 0.07911 seconds