Two Laptop Bag*
The moose likes Java in General and the fly likes How to display russian data properly using S.O.P Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to display russian data properly using S.O.P" Watch "How to display russian data properly using S.O.P" New topic
Author

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

Ravi Kumar
Greenhorn

Joined: Aug 28, 2008
Posts: 18
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

Joined: Oct 14, 2008
Posts: 1337
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

Joined: Aug 28, 2008
Posts: 18
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

Joined: Oct 14, 2008
Posts: 1337
What is "UserInterface"? Can it handle cyrillic text? Are you using a font that has those characters?
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3615
    
  14

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to display russian data properly using S.O.P