I’ve encountered a HUGE problem, which may not be RoR-oriented, but
there might be a workaround somehow.
See, at this moment, I’m unable to send AJAX requests back and forth
when the information contains an ampersand (’&’). In essence, request is
never completed. The odd thing is that it only happens with Firefox (IE
and Opera works fine).
This means that I’m unable to pass along html entities, since they all,
conveniently enough, contains ampersands. I can’t replace the ampersand
with the html entitiy for it, either, since that would also contain an
ampersand. Being Swedish, I’m kinda screwed if I can’t use å,
ä and ö on my website. Replacing them with the letter without
using entities is out of the question, too; they only come out as nice
boxes if I do.
Please note that the request itself can be without ampersands, and it
still doesn’t work as long as the data I fetch contains one or more
Does anyone have a clue on how to fix this, or work around it? I’ve
tried creating a function which substitutes certain characters with
their entity-form using string.gsub(), but that doesn’t work either. Is
there a way to perform such a substitution after the AJAX-request is
completed, and if so, how do I do that?
Thanks in advance,