Project

General

Profile

Actions

Backport #531

closed

XMLRPC with ISO8859-1 accentuation doesn't work.

Added by mauricio.szabo (Mauricio Szabo) over 15 years ago. Updated over 4 years ago.

Status:
Closed
[ruby-core:18434]

Description

=begin
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:

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
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0