axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emanuel Norrbin (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Created: (AXISCPP-741) Extended ascii characters not deserialized?
Date Tue, 12 Jul 2005 19:59:11 GMT
Extended ascii characters not deserialized?
-------------------------------------------

         Key: AXISCPP-741
         URL: http://issues.apache.org/jira/browse/AXISCPP-741
     Project: Axis-C++
        Type: Bug
  Components: Server - Deserialization  
    Versions: 1.6 Alpha    
 Environment: Client: Axis Java 1.2 on Windows XP
Server: Axis C++1.6 Alpha on Linux (Fedora, FC3)
    Reporter: Emanuel Norrbin


Seems like ascii extensions do not get converted correctly in Axis 
Case in point, I am posting an array of strings and some of them have special european characters.
Take this example,

The text I want to send:

Lite svenska: blåbär på ö
Och lite spanska: ¿que pasó? mañana
Ç

The text that is sent over the wire (with some irrelevant data removed)

POST /axis/konga_deploy_interchange_data HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.2
Cache-Control: no-cache
Pragma: no-cache

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body>
<deployInterchangeData xmlns="urn:com.edgeways.integration.server.infoprovider.webservice.interchange.deploy.DeployInterchangeData">
<rows>
<item>
<fields xsi:type="ns2:ArrayOf_xsd_string" xmlns:ns2="urn:com.edgeways.integration.server.infoprovider.webservice.interchange.deploy.DeployInterchangeData">
<item>
Lite svenska: bl&#xE5;b&#xE4;r p&#xE5; &#xF6;
Och lite spanska: &#xBF;que pas&#xF3;? ma&#xF1;ana
&#xC7;
</item>
</fields>
</item>
</rows>
</deployInterchangeData>
</soapenv:Body>
</soapenv:Envelope>

The deserialized string at the server however is truncated at the first non us-ascii character
so in this case I get

"Lite svenska: bl"

instead of what I want:

"Lite svenska: blåbär på ö
Och lite spanska: ¿que pasó? mañana
Ç"

Is there something else I need to do to get this to work? Is utf-8 encoding supported by the
C++ server?
Seems to me it can't be since strings are represented by a char*. Or is there something else
I need to do to get this to work?

/Thanks
Emanuel


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message