From: rubix Rubix Date: 2012-08-01T03:56:51+09:00 Subject: Re: em-http request Thanks for your answer, the problem is not in the url encoding, it is in the encoding of the response body, when there is special character (é, è..) or arabic character, I get unicode character and sometime I get nothing this is my code: EM.synchrony do concurrency = 2 urls = ['http://url1', 'http://url2', 'http://url3'] results = [] EM::Synchrony::FiberIterator.new(urls, concurrency).each do |url| resp = EventMachine::HttpRequest.new(url).get results.push resp.response end results.each{|result| doc = Nokogiri::HTML(result, nil, 'utf-8') title = doc.xpath(".//title").text p title } EventMachine.stop end best regards -- Posted via http://www.ruby-forum.com/.