Bug #531: XMLRPC with ISO8859-1 accentuation doesn't work.
http://redmine.ruby-lang.org/issues/show/531

Author: Mauricio Szabo
Status: Open, Priority: Normal

If, on a XMLRPC server, I send a string with accents (and the format is not UTF-8), the client exits with an error:
/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:330:in `pull': Missing end tag for 'string' (got "value") (REXML::ParseException)
Line:
Position:
Last 80 unconsumed characters:
</param></params></methodResponse>      from /usr/lib/ruby/1.8/rexml/parsers/streamparser.rb:16:in `parse'
        from /usr/lib/ruby/1.8/rexml/document.rb:200:in `parse_stream'
        from /usr/lib/ruby/1.8/xmlrpc/parser.rb:717:in `parse'
        from /usr/lib/ruby/1.8/xmlrpc/parser.rb:460:in `parseMethodResponse'
        from /usr/lib/ruby/1.8/xmlrpc/client.rb:421:in `call2'
        from /usr/lib/ruby/1.8/xmlrpc/client.rb:410:in `call'
        from client.rb:11


Here is the offending code on XMLRPC Server:


require 'webrick'
require 'xmlrpc/server.rb'
servlet = XMLRPC::WEBrickServlet.new
servlet.add_handler("some_command") { "Extens\343o" }

server=WEBrick::HTTPServer.new(:Port => 9090)
trap("INT"){ server.shutdown }

server.mount("/RPC2", servlet)
server.start


----------------------------------------
http://redmine.ruby-lang.org