Hi, In <417d7f496f19d3bb0dd933bc74983483 / ruby-forum.com> "Re: XMLRPC (REXML) incorrectly handles UTF-8 data" on Thu, 18 Nov 2010 17:21:45 +0900, Petr Klima <petr.klima / avg.com> wrote: > Hi, > here is the reply from XMLRPC server: > > HTTP header: ... > XML response (should be one line): ... > As you can see, there's correct UTF-8 string in cyrillic in the middle > of the XML. Thanks. I can reproduce it. This had been fixed in trunk. This is a problem of REXML but maybe the following code will fix it. (I don't try it. Sorry.) module SubmitFilesHelper module XMLRPCWorkAround def do_rpc(request, async=false) data = super data.force_encoding("UTF-8") data end end @rpc_server_url='http://172.16.1.2:3000' def self.sendToServer(filename,language) require 'xmlrpc/client' server = XMLRPC::Client.new2(@rpc_server_url) server.extend(XMLRPCWorkAround) result = server.call('check', filename,language) end end Thanks, -- kou