Browse the Ruby on Rails Community.

You are here: Forums Ask a Rails expert Passing non-english chars in q...

Replytotopic

Passing non-english chars in query string

Posted in Forums : Ask a Rails expert

 
Profile

Authority 12
Posting Rating 96
Sign in to rate this post

Is it possible to encode non-english chars ( say Danish char : ÆØÅ ) before passing them in the query string and some logic available to decode them at the target method? How are such cases handled in general ?

 
Me

Authority 62
Posting Rating 100
Sign in to rate this post

CGI.encode and CGI.decode should do the trick.

 
Profile

Authority 12
Posting Rating 96
Sign in to rate this post

The issue is the encoded URL is sent to my controller using an ASP method ‘Server.UrlEncode’, i tried using CGI and Base64 methods to decode it but seems to be not working

Replytotopic

Other Recent Topics

Ask a Rails expert : How to parse <pubdate> in RSS

Ask a Rails expert : Couldn't find Product without an ID

Ask a Rails expert : HTML to XML ---> get title & description

Ask a Rails expert : Accessing controller actions from scripted page?

Ask a Rails expert : seledted option for select_tag

Ask a Rails expert : Merging fields from two tables into one, including duplicates

Ask a Rails expert : saving has_many :through

Ask a Rails expert : Use Rails to develop sites for both Designer and Programmer

Ask a Rails expert : Rails+RS232

Ask a Rails expert : Is this a good way to add Admin section

Formatting Help
  • *bold*       _italics_      
    bq. (quotes)
  • "DSC":http://www.dsc.net
  • * or # (lists)
or cancel