Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Cyrillic Font and the Scanner Object
Cyrillic Font and the Scanner Object [message #991245] Tue, 18 December 2012 01:24
seth halp is currently offline seth halpFriend
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!
Previous Topic:Best way to use GIT in our environment?
Next Topic:TCP/IP Monitor
Goto Forum:
  


Current Time: Sat Apr 10 19:56:39 GMT 2021

Powered by FUDForum. Page generated in 0.03787 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top