# Pass special symbols through URL

**URL:** <https://www.ruby-forum.com/t/pass-special-symbols-through-url/138678>\
**Category:** Rails\
**Created:** [May 26, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/pass-special-symbols-through-url/138678 "2008-05-26T16:54:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![serge](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5f8ce5/32.png) [@serge](https://www.ruby-forum.com/u/serge)\
**Post date:** [May 26, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/pass-special-symbols-through-url/138678/1 "2008-05-26T16:54:50Z")

</div>

I need to pass path to file through URL

e.g.  
path\_to\_file/file.mov

so URL will be something like this  
[http://localhost:3000/file\_manager/del\_media\_file/path\_to\_fileEfile.mov](http://localhost:3000/file_manager/del_media_file/path_to_file%45file.mov)

i found function to CGI::escape and CGI::unescape to convert special  
characters. But it ignores “.” so i receiv “file” instead of “file.mov”  
inside params hash

how can i fix it?

---

<div class="post-metadata">

**Author:** ![serge](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5f8ce5/32.png) [@serge](https://www.ruby-forum.com/u/serge)\
**Post date:** [May 26, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/pass-special-symbols-through-url/138678/2 "2008-05-26T17:35:01Z")

</div>

anonymous – wrote:

> I need to pass path to file through URL
> 
> e.g.  
> path\_to\_file/file.mov
> 
> so URL will be something like this  
> [http://localhost:3000/file\_manager/del\_media\_file/path\_to\_fileEfile.mov](http://localhost:3000/file_manager/del_media_file/path_to_file%45file.mov)
> 
> i found function to CGI::escape and CGI::unescape to convert special  
> characters. But it ignores “.” so i receiv “file” instead of “file.mov”  
> inside params hash
> 
> how can i fix it?

he… i solve this problem using Base64
