Accessing the raw/un-html-ized CGI parameters

Hi all,

Does anybody know how can I access the raw CGI parameters?
For example I enter this in a textarea:

qweÅ?lÅ£qwe.com

and get this value instead:

qweşlţqwe.com

with the language specific characters turned into HTML entities,
which is not exactly what I need… How can I access the raw
string? Or can I prevent this conversion to take place… ?

Thank you in advance,
Alex

What is this? Webrick, Mongrel, Rails, etc. Difficult to help if we
have no idea what libraries you are using.

sender: “Simen E.” date: “Fri, Jun 23, 2006 at 02:03:55AM +0900” <<<EOQ
What is this? Webrick, Mongrel, Rails, etc. Difficult to help if we
have no idea what libraries you are using.
Thanks for trying :slight_smile: and sorry for being so vague.
I am using Apache, plain Ruby run as cgi and the standard cgi module,
like this:

require ‘cgi’

cgi = CGI.new
cgi[‘idn-domain-name-here.com’] # == BIG_SURPRISE! :slight_smile:

I enter this ‘qweÅ?lÅ£qwe.com’ and get this ‘qweşlţqwe.com’
instead. I solved the problem by using ‘htmlentities’:
http://htmlentities.rubyforge.org/
which btw, works excellent, but I’d still be interested if there is
a solution to achieve this just by using the cgi module itself (and
preventing the encoding in the first place).

Thank you!
Alex

I would be interested to know if someone has a more core-ruby solution?