The Unicode Consortium Discussion Forum

The Unicode Consortium Discussion Forum

 Forum Home  Unicode Home Page Code Charts Technical Reports FAQ Pages 
 
It is currently Fri Oct 31, 2014 4:39 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Encoding problem, Unable to persist UTF-8 characters.
PostPosted: Tue Feb 05, 2013 12:11 am 
Offline

Joined: Mon Feb 04, 2013 1:03 am
Posts: 2
Hi All,

While rendering consumed webservices content unable to persist utf-8 characters(I referred http://www.ardentex.com/publications/ch ... s-java.pdf ) . This is my first experience working with web services. Let me explain my scenario.


Issue : Unable to persist few characters as it is on web page. Eg: right single quotation mark ( ’ ) displaying as (?).
I am working on following development environment.

JDK-1.6

Postgres

Jboss 4.2.3

Linux (Fedora)

Application flow--->

Browser ---> Request sent to ---> Webservices---> requested webservice impl class fetch the data(here some business stuff goes) from postgres database adds the content to Response object. From response browser shows the content.

For testing I am using SoapUI. In SoapUI I am able to see exact content as XML document. But while transferring this data through network, the special characters of content modifying as some other characters as mentioned above.

Please find the attachment of SoapUI header part.

My question is should I change character set configurations in XML file(present it is UTF-8), or any configuration changes of Jboss should need to change. I expecting from you how to handle this situation in my application.

Let me know what happening while transferring the data among layers.

I ensured that web services data is being transferred in UTF-8.
Ensured that my PostgreSQL database instance is using a UTF-8 encoding

Expecting quick help from you.

Thanks,
Bhanu


Top
 Profile  
 
 Post subject: Re: Encoding problem, Unable to persist UTF-8 characters.
PostPosted: Fri Feb 08, 2013 12:02 am 
Offline

Joined: Mon Feb 04, 2013 1:03 am
Posts: 2
Hi, I find the solution for this by using http://commons.apache.org/lang/api-2.4/ ... Utils.html.

Using escapeHtml() method solved the problem.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


Quick-mod tools:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Template made by DEVPPL.com