From: "Iñaki Baz Castillo" Date: 2009-09-03T04:41:41+09:00 Subject: Re: Ruby1.9: Encoding problems (how to use #force_encoding ?) El Miércoles, 2 de Septiembre de 2009, James Edward Gray II escribió: > >> search_what=CGI.escape("Alarcón") > >> page="http://es.wikipedia.org/w/index.php?title=Especial%3ABuscar&search > >>=#{search_what}&fulltext=Buscar " > >> open(page){ |f| print f.read } > > > > Thanks but the problem is that the geo_location Ruby gem returns a > > wrong string (encoded in ASCII-8BIT) since it contains invalid chars > > for ASCII-8BIT encoding, so Ruby fails when trying to convert it to > > other encoding :( > > There are no invalid characters in ASCII-8BIT. It's a catch all > Encoding. So that's definitely not the problem… ;) Ok, that's a good point. I'll try it. -- Iñaki Baz Castillo