On Wed Jun 28, 2006 at 01:23:42AM +0200, Gregg P. wrote:
Or is there perhaps a plugin someone wrote that is less
i think you have to wait for Ruby to suport UTF-8, or resort to
hacks/patches/plugins. i made a local file browser in rails the other
day and ran into this same issue…
On Jun 27, 2006, at 8:11 PM, Gregg P. wrote:
But there has to be a way to simply decode HTML parameters in the URL.
The problem with doing this in a controller action, is that it’s
too late. Rails has already attempted to decode it, and a ? appears
instead of the %E9.
I guess I’ll have to dive into ActionController rails code?
But %E9 isn’t a valid UTF-8 character. To encode é (U+00E9), you’d
parm = “item=Pur%C3%A9ed”
Hmm… That works. Perhaps the problem is the user agent that encodes
the parameters into the URL? Or in making the assumption that the
original string is UTF-8.