axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Negrao" <bneg...@gmail.com>
Subject Re: Converting from UTF-8 to ISO-8859-I with Axis2 and Java
Date Tue, 31 Oct 2006 23:18:22 GMT
Hi Alelikov, thank you for answering.

But, if I understood what you meant, wouldn't I need to use the ISO-8859-1
in my POST method instead of UTF-8?


> BufferedWriter w = new BufferedWriter(*new OutputStreamWriter(
> socket.getOutputStream(), "UTF8")*);


BufferedWriter w = new BufferedWriter(*new OutputStreamWriter(
socket.getOutputStream(), "ISO-8859-1")*);


> w.write("Content-Length: " + request.getBytes("*UTF8*").length + "\r\n");
>
w.write("Content-Length: " + request.getBytes("ISO-8859-1").length +
"\r\n");

Because the server only understands ISO-8859-1.

Also, I'd like to know the correct way of doing this using axis2. I cannot
use a code like your example at this point of my project...

Thank you,
bruno

Mime
View raw message