Yet another character encoding issue! When I send a SOAP request to my server if one of the String contains a smart quotes (“) the server generates the following parsing error:
org.xml.sax.SAXParseException: Character conversion error: "Unconvertible UTF-8 character beginning with 0x93" (line number may be too low). I have checked the request and the smart quote is embedded in the request as is. Axis uses the SimpleSerializer to serialized java.lang.String. I browse the Serializer code and it does not seem to convert the String using UTF-8 encoding before sending the request. That seems a big flaw, given the fact that the XML of the request must use UTF-8. I believe there is something I missed. Do I really need to write my own serializer/deserializer for java.lang.String to take care of the Unicode / UTF-8 conversion? Michael