ianic wrote:
> I lose Croatian character(windows-1250 encoding) on each element
> rendered by Ajax.
> If there a way to force Ajax to use the same encoding as a parent page
> when rendering response.
there are two issues here:
- when rendering your HTML snippets with AJAX, you have to set the
character encoding of the response in an HTTP-header as the meta
information in the HTML header is not available in an HTML snippets
- parameters from AJAX requests (client -> server) are always utf-8 encoded.
I described work-arounds for both problems in more detail in this
blog-entry:
http://www.kanthak.net/explorations/blog/rails/ajax_and_charsets.html
Sebastian