[ http://issues.apache.org/jira/browse/XMLRPC-53?page=all ] Jochen Wiedmann closed XMLRPC-53: ---------------------------------
Resolution: Fixed Assign To: (was: rpc-dev mailing list) It is unknown, whether this problem does apply to version 2. If so, it seems difficult to add an incompatible change at this stage of the project. The recommended solution would be to use another XML parser. Version 3 uses another XML parser anyways. > XML Parser (MinML) does not support unicode characters. > ------------------------------------------------------- > > Key: XMLRPC-53 > URL: http://issues.apache.org/jira/browse/XMLRPC-53 > Project: XML-RPC > Type: Bug > Components: Source > Versions: unspecified > Environment: Operating System: Windows NT/2K > Platform: PC > Reporter: Gabriel Toma-Tumbar > > The XML Parser (MinML) does not correctly decode the InputStream according to > the given encoding. I took out from CVS the 1.1 version and also the latest > one. > The problem remains the same. Somehow I managed to get over it by specifiying > the encoding in the parse function from uk.co.wilson.xml.MinML.java. > // Old code (yours). > public void parse(final InputSource source) throws SAXException, IOException { > if (source.getCharacterStream() != null) > parse(source.getCharacterStream()); > else if (source.getByteStream() != null) > parse(new InputStreamReader(source.getByteStream())); > else > parse(new InputStreamReader(new URL(source.getSystemId()).openStream())); > } > // New code > public void parse(final InputSource source) throws SAXException, > IOException { > if (source.getCharacterStream() != null) > parse(source.getCharacterStream()); > else if (source.getByteStream() != null) > parse(new InputStreamReader(source.getByteStream(), ENCODING)); > else > parse(new InputStreamReader(new URL(source.getSystemId()).openStream(), > ENCODING)); > } > I got the ENCODING from XmlRpc.java. Perhaps there is another way to get it, > but > I did not have the time to look. -- 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