Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data getting corrupt.

 
Hemen Thacker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to call a webservice with a ISO-8859-1 character on the server its adding a junk character.

Submitted string
� forte: Test

Received string on server.
�� forte: Test

Webservice is created using AXIS - wsdl2java RPC is used in webservice.

Any help is much appreciated.

Thanks,
Hemen
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this was my problem my first step would be to use TCPMON or similar utility to intercept the exact contents of request and response. Sometimes that reveals a simple cause.

Bill
 
Hemen Thacker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bill,

The yen character is ISO character and not UTF-8 thats why its getting a additional character. Attached is simple code to recreate the issue. I can solve this issue if the request and response object is changed to ISO encoding. Any idea if thats possible and if yes how can it be done? Thanks for your help.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic