Project

General

Profile

This project is closed and read-only.

Actions

Backport #531

closed

XMLRPC with ISO8859-1 accentuation doesn't work.

Backport #531: XMLRPC with ISO8859-1 accentuation doesn't work.

Added by mauricio.szabo (Mauricio Szabo) about 18 years ago. Updated about 7 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

Updated by JEG2 (James Gray) about 18 years ago Actions #1

=begin
I'm not sure how much can be done here. The error is coming from inside REXML. Does it support XML content in anything other than UTF-8, at this point?

You're also talking about Ruby 1.8 which doesn't have a lot of encoding options.

Would transcoding your output to UTF-8 (the standard Iconv library can do this) be an option?
=end

Updated by ser (Sean Russell) about 18 years ago Actions #2

=begin
On Monday 01 September 2008 16:43:16 James Gray wrote:

Issue #531 has been updated by James Gray.
...
I'm not sure how much can be done here. The error is coming from inside
REXML. Does it support XML content in anything other than UTF-8, at this
point?

If whoever is in control of the redmine site would give me contributor status,
I'll take this issue.

My account name on redmine.ruby-lang.org is "ser"

--- SER

=end

Updated by shyouhei (Shyouhei Urabe) about 18 years ago Actions #3

  • Assignee set to ser (Sean Russell)

=begin

=end

Updated by matz (Yukihiro Matsumoto) about 18 years ago Actions #4

=begin
Hi,

In message "Re: [ruby-core:18772] Re: [Bug #531] XMLRPC with ISO8859-1 accentuation doesn't work."
on Sun, 21 Sep 2008 22:51:10 +0900, Sean Russell writes:

|If whoever is in control of the redmine site would give me contributor status,
|I'll take this issue.
|
|My account name on redmine.ruby-lang.org is "ser"

Now you are.

						matz.

=end

Updated by shyouhei (Shyouhei Urabe) about 16 years ago Actions #5

  • Status changed from Open to Assigned
  • ruby -v set to -

=begin

=end

Updated by jeremyevans0 (Jeremy Evans) about 7 years ago Actions #6

  • Tracker changed from Bug to Backport
  • Project changed from 2 to 5
  • Description updated (diff)
  • Status changed from Assigned to Closed
  • ruby -v deleted (-)
Actions

Also available in: PDF Atom