Forum: Ruby on Rails International char problem eg ä

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Peter.Cutting (Guest)
on 2005-11-24 12:23
(Received via mailing list)
I have written a simple web proxy server which is currently choking on
links containing international characters.

Below is a fictitious link which my proxy server might find in a web
page(<IMG src="..."). It contains a &auml; (a with 2 dots) in the jpg

If my proxy sever tries to Get the page pointed to by the link then the
result is Page Not Found. If I paste the link into Firefox I again get
Page Not Found

If I change the &auml; to %E4 then it works in firefox (and I assume
Ruby)  eg

So I am looking for a function which converts HTML representations to
Hex in a string

I thought CGI.unencodeHTML might do the trick but it only converts a few
characters (HTML syntax I think) such as &lt; and &gt;

Any ideas?

This topic is locked and can not be replied to.