axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruchith Fernando (JIRA)" <>
Subject [jira] Commented: (AXIS2-80) Support for UTF-16 (and ability to add others later)
Date Thu, 28 Jul 2005 04:10:20 GMT
    [ ] 

Ruchith Fernando commented on AXIS2-80:

Hi all,

I used Axis test case test\encoding\ and created one to test the  to test
the handling of UTF-16 encoding by the StAX parser and serializer. 

11 Tests from the above Axis test case were used:
 - testSimpleString
 - testStringWithApostrophes
 - testStringWithEntities
 - testStringWithRawEntities
 - testStringWithLeadingAndTrailingSpaces
 - testWhitespace
 - testFrenchAccents
 - testGermanUmlauts
 - testWelcomeUnicode
 - testWelcomeUnicode2
 - testWelcomeUnicode3

Out of the above 4 tests failed:
 - testStringWithLeadingAndTrailingSpaces
 - testWhitespace
   This is because the serialization removes the whitespaces

 - testGermanUmlauts
 - testWelcomeUnicode
   Still not sure of the reason for this faliure

I was able to remove the hard coding of UTF-8 in the Axis2 transports and introduced 
CHARACTER_SET_ENCODING option to the MessageContext. Now the transports will check for this
property in the message context when creating the readers and writers and if not found UTF-8
will be used as the default.

Right now I'm working on ensuaring the response message is of the same char-encoding as the
request message. (By setting the CHARACTER_SET_ENCODING property in the operation context
of the relevant message context)

I'll send in the patches and test cases at the end of day :-)


> Support for UTF-16 (and ability to add others later)
> ----------------------------------------------------
>          Key: AXIS2-80
>          URL:
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>     Reporter: Davanum Srinivas

> Folks,
> Do we support UTF-16? Can we please add this to the list for 1.0. We need to structure
things such that we can add others later if necessary. Please review the UTF-8/UTF-16 tests
in axis 1.x (test/encoding) for inspiration.
> thanks,
> dims

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message