Does anyone knows how I can influence the format of the instance variable when it is returned after an ajax call. At the moment when I try to render it I get the error:- incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string) This happens when the instance variable is being rendered in the index.js.erb file. It seems that the format.js is returning the @variable in the wrong format. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.