aspose file tools*
The moose likes Web Services and the fly likes Russian text in Web Service response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Russian text in Web Service response" Watch "Russian text in Web Service response" New topic
Author

Russian text in Web Service response

Guru Rao
Greenhorn

Joined: Apr 24, 2009
Posts: 11
Hi all,

I am receiving a russian text in the response of a web service call. But when I print the response string using System.out.println(), I see "??? ???" and not the actual Russian text.

I am setting the encoding type in the SOAP Request message as "UTF-8".

Anything more to be done to receive the Russian text?

Regards,
Guru
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42632
    
  65
Where are you printing this - to a console? If so, be aware that most (all?) consoles can't handle non-ASCII characters, so the fact the "?" appears means nothing. You could save the response to a file (specifying UTF-8 as encoding), and open it with a Unicode-capable editor.


Ping & DNS - my free Android networking tools app
Guru Rao
Greenhorn

Joined: Apr 24, 2009
Posts: 11
Hi,

You were right, I guess the console is not capable of handling nin-ASCII characters. I wrote to a file using UTF-8 encoding and opened it using notepad. And I was able to see the Russian characters.

Thanks for the help.

Regards,
Guru
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Russian text in Web Service response