Davanum, we had progress with your suggestion!

When I used
options.setProperty("CHARACTER_SET_ENCODING", "ISO-8859-1");

I saw my strings were converted to ISO-8859-1 and were sucessfully stored on the database.

But after, when I try to retrieve the stored data from the database and show it again to the user, the characters are appearing crazily on the window.

It seems axis2 is not, automatically, converting from ISO-8859-1 to UTF-8 before creating the strings at the OMText elements.

How can I get these iso-8859-1 strings converted back into utf-8?

thank you,
bruno.

On 10/31/06, Bruno Negrao < [EMAIL PROTECTED]> wrote:
Thank you Davanum,

But the class org.apache.axis2.Constants.Configuration I'm using here does not contain the CHARACTER_SET_ENCODING constant declared.

Which version of axis2 should I use? where can I download it?

thank you,

bruno


On 10/31/06, Davanum Srinivas < [EMAIL PROTECTED]> wrote:
Set the options

org.apache.axis2.Constants.Configuration.CHARACTER_SET_ENCODING

http://www.wso2.net/articles/axis2/java/2006/08/01/client-api-parameters

You can do this with ServiceClient or generated code

-- dims

On 10/31/06, Bruno Negrao < [EMAIL PROTECTED]> wrote:
> Guys, I'm developing a JAVA GUI that runs on Windows XP where the user can
> enter account data that will be stored on a linux+postgre server.
>
> The data is sent from the GUI to the postgre server using soap. I'm using
> axis2 on the client side. (the server-side uses Perl SOAP)
>
> The problem is the server is configured to use ISO-8859-1, while my Java
> application is sending the data using UTF-8. All the strings containing
> non-ascii characters are being stored incorrectly on the server. The server
> is not converting from utf-8 to iso-8859-i before storing the data.
>
> Since the people on the server-side say "we cannot change nothing", and they
> suggested "you have to send this data in iso-8859-1", I'm obligated to send
> my SOAP post's using ISO-8859-1 strings instead of UTF-8.
>
> I have no idea of how can I do this. Can someone give some hints on this?
>
> Thank you very much,
>
> bruno.
>


--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to