File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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: 41106
    
  45
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
 
jQuery in Action, 2nd edition
 
subject: Russian text in Web Service response
 
Similar Threads
Deserialise SOAP Response
Russian Slangs
How to print SOAP response as XML in AXIS 1...
Web Service response not getting.
How to order the elements in soap message?