Dear Ińįki,
maybe you can use CGI.escape for your encoding problems?
I fetched the Spanish wikipedia page for Alarcóī like so:
# encoding: utf-8
require "cgi"
require 'open-uri'
search_what=CGI.escape("Alarcóī")
page="http://es.wikipedia.org/w/index.php?title=Especial%3ABuscar&search=#{search_what}&fulltext=Buscar"
open(page){ |f| print f.read }
Best regards,
Axel
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser