# Using encodeURI with text\_field\_with\_auto\_complete

**URL:** <https://www.ruby-forum.com/t/using-encodeuri-with-text-field-with-auto-complete/105618>\
**Category:** Rails\
**Created:** [May 31, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/using-encodeuri-with-text-field-with-auto-complete/105618 "2007-05-31T19:33:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![desertpenguin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d07c76/32.png) [@desertpenguin](https://www.ruby-forum.com/u/desertpenguin)\
**Post date:** [May 31, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/using-encodeuri-with-text-field-with-auto-complete/105618/1 "2007-05-31T19:33:47Z")

</div>

I am using text\_field\_with\_auto\_complete to display a list to the user.

Unfortunately, some of the items contain non-url friendly characters.

How can I wire up the prototype encodeURI function to package the field  
before sending?

\<%= text\_field\_with\_auto\_complete :classification, :class\_desc ,  
:skip\_style =\> true, :size =\> 60 %\>

Thanks for any tips
