Forum: Ruby on Rails RE: Problem with UTF-8 AJAX search

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
torben.wolm (Guest)
on 2005-11-23 16:05
(Received via mailing list)
That's odd... In which browser are you seeing the problem?

Safari apparently has a problem with UTF-8 in AJAX:

I've had the exact opposite problem, where AJAX uses UTF-8 but I need
the search text as ISO-8859-1

(the solution to that problem is presented at:

best regards,
jw (Guest)
on 2005-11-23 17:30
(Received via mailing list)
The trick for me seemed to use:

$KCODE = 'u'
require 'jcode'

And in the view DO NOT escape the string, so just

:with => "'search=' + $F('search')"

in the view.

> best regards,
> torben


Jonathan W.
This topic is locked and can not be replied to.