On Sep 20, 2007, at 24:31 , 7stud -- wrote:
> Robert Klemme wrote:
>>> which as far as I can tell means that URI.parse() is broken.
>>
>> I don't think so.  There are invalid characters in the domain name  
>> (as
>> the exception indicates).
>>
>
> Can you identify which character is invalid in:
>
> http://www.h%C3%B6ren.co
>
> According to wikipedia, all those characters are valid for a uri.

It says that what characters are valid for each piece of a URI is  
dependent on the URI scheme.  The characters valid for the hostname  
part of the http URI scheme is goverened by the DNS system, so you  
need to use an IDN.

I believe there is a ruby wrapper for libidn.