This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to display russian data properly using S.O.P

 
Ravi Kumar
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Iam working with russian client and the data displayed in UserInterface is coming as '???". I have written small code like this and it is also displays the output as "???".

public class russiandata {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub

String test = "кфмш";
System.out.println("Test"+test);


}

}

OutPut : Test???.

Please suggest me as i want to display russian data instead of "???". Please suggest me how to resolve this issue?

Regards
Ravi
 
Lester Burnham
Rancher
Posts: 1337
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where are you printing this - a console or terminal of some kind? Those generally support ASCII (or ISO-8859-1 at best), but not anything else.
 
Ravi Kumar
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Iam displying this data in UserInterface and not in console. It has a text field and that has to display russian data. Please let me know how to handle this?

Regards
Ravi
 
Lester Burnham
Rancher
Posts: 1337
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is "UserInterface"? Can it handle cyrillic text? Are you using a font that has those characters?
 
Stephan van Hulst
Bartender
Pie
Posts: 4826
34
Chrome Netbeans IDE Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try this:
This is necessary, but you still have to make sure that wherever System.out prints to, it has a font that supports Cyrillic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic