I also have the special chars problems
when i use axiom-1.2.5 code to add multilanguage char to SOAP xml in axis2-1.3 "ééé" was translated to " E9; E9; E9;"
and logon webservice can not work,
if we use gSoap c++ code to generate SOAP xml, "ééé" was translated to " 233; 233; 233;"
and logon webservice is OK,
"é": Unicode=U+00E9 (E9)(Hex)=(233)(Dec)
it seems that this logon webservice only recognize " 233"(Dec)
for i can not change this webservice, and " 233"(Dec) and "é"(Hex) are all legal XML string,
so how can axis2/axiom export " Dec" for un_ascii char?
PS: axis2 code to generate SOAP xml
OMFactory fac = OMAbstractFactory.getOMFactory(); ......
// Empty namespace used when namespace prefix should be omitted OMNamespace noNs = fac.createOMNamespace("", ""); ......
// Create required data node: [USERNAME] OMAttribute attr_type_xsi_string = fac.createOMAttribute(Constants.ATTR_TYPE, xsi, Constants.NS_PREFIX_SCHEMA_XSD + ":" + Constants.XSD_STRING.getLocalPart());
OMElement userName = fac.createOMElement("UserName ", noNs); userName.addAttribute(attr_type_xsi_string);
userName.addChild(fac.createOMText(userName, "ééé"));
Thanks,
Best Regards,
Howard Yang
----- Original Message -----
From: "Andreas Veithen" < [EMAIL PROTECTED] >
To: < [email protected] >
Sent: 2008-02-15 05:15:24 +0800
Subject: Re: Axis2 [1.3] Problems with special chars
>On 14 Feb 2008, at 10:42, Thomas Pawlitzki wrote:
>
>> When i now call the service method of the stub to send the message to
>> the webservice the httpclient logs the follwowing:
>>
>> ...
>>
>>
>>
>>
>> ....
>>
>> Here you can see that the httpclient encodes the Ö into [0xd6].
>
>HttpClient *logs* it like that. Indeed, all characters outside of the
>range 32..127 are transformed like that. You can see this from the
>code here:
>
>http://svn.apache.org/viewvc/httpcomponents/oac.hc3x/trunk/src/java/org/apache/commons/httpclient/Wire.java?view=markup
>
>However, that doesn't mean that HttpClient *sends* the message like
>that.
>
>Andreas
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
=======================263电子邮件-邮件运营专家=======================
