This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41062
    
  43
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
 
 
subject: Russian text in Web Service response
 
Similar Threads
How to print SOAP response as XML in AXIS 1...
Deserialise SOAP Response
Russian Slangs
Web Service response not getting.
How to order the elements in soap message?