You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by "Kwangje, Cho" <kw...@5184.co.kr> on 2000/10/01 14:25:43 UTC

SOAP can't support the internation charset. Why?

Hi! all.

I found a problem in the Apache-SOAP.
That was the SOAP can't transfer the exact bytes of content to the web server.
Becase, the SOAP use to get content length with String.length() method in the org.apache.soap.util.net.HTTPUtils.java line 136.
For the support multibyte language in the SOAP, it must be changed to get exact byte length with using String.getBytes().length property.

The String.length() method only returns the number of chars (i.e. not number of bytes).
So, the contents has multibyte chars, it returns wrong byte length.

All people of using multibyte language to want use the SOAP, they must change the HTTPUtils.java line 136 with content.getBytes().length.

Good bye.

-- Cho, Kwangje --