Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Russian text in Web Service response

 
Guru Rao
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Guru Rao
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic