Using Rails 3.2.13 with Ruby 1.8.7
I have this utf-8 url: "http://google.com/?禾楼囖谈河任"
when I use
redirect_to "http://google.com/?禾楼囖谈河任"
It gets - Redirected to http://google.com/???????
However when I print out the bytes using unpack('U*'), it outputs the correct unicode sequence as below:
[104, 116, 116, 112, 58, 47, 47, 103, 111, 111, 103, 108, 101, 46, 99, 111, 109, 47, 63, 31166, 27004, 22230, 35848, 27827, 20219]
I want it to redirect to the utf-8 url.
Can anyone help?
Thanks