• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Web-Services and Character Set(UTF-8,ISO-8859-1) encoding-decoding Issue

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Folks,

I will try to make this easy.

My architecture is like this

Remedy server-->Remedy Midtier-->Remedy Web Service-->My web-service client(JAX-WS)-->data gets stored in "String".

I am working with Remedy application that has data stored in French (with all special latin characters).

e.g. Equinix vous informe d’un nouvel incident réseau à SV. Merci de vérifier vos courriels ou notre portail client pour de plus amples informations.

Now, I am using Remedy web-service to retrieve this data(Remedy WSDL supports UTF-8) and in SOAP Response it looks like this

---[HTTP response - http://<servername>; - 200]---
Transfer-encoding: chunked
null: HTTP/1.1 200 OK
Content-type: text/xml;charset=utf-8
Server: Apache-Coyote/1.1
Date: Wed, 13 Jun 2012 21:17:53 GMT
Set-cookie: JSESSIONID=A94D284C2F31FDDC77880361AB4BEC4A; Path=/arsys
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns0:OpGetResponse xmlns:ns0="urn:RemedyECPIntegration" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns0:Arguement_Builder>
Equinix vous informe d’un nouvel incident réseau à SV. Merci de vérifier vos courriels ou notre portail client pour de plus amples informations.
</ns0:Arguement_Builder>
</ns0:OpGetResponse></soapenv:Body></soapenv:Envelope>--------------------

I am using JAX-WS Library to write my web-service client.

When this data gets stored in "String" since that is what return parameter data-type is, it looks like below
Equinix vous informe dâun nouvel incident réseau à SV. Merci de vérifier vos courriels ou notre portail client pour de plus amples informations.


Now, the text that I need in "String" is the original text that is stored in Remedy which is
Equinix vous informe d’un nouvel incident réseau à SV. Merci de vérifier vos courriels ou notre portail client pour de plus amples informations.

How can I achieve it?

Any help is greatly appreciated.

P.S.: I have gone through various links about using CharSet encoding/decoding and none of it is working.

Thanks
Chintan.
 
Chintan B Shah
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi folks,

Problem was with the encoding of my terminal client(Putty).

Just for your info, encoding can be changed under "Change Settings-->Windows-->Translation" in Putty.

My co-worker pointed it out .

Thanks
Chintan.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic