Ok, solved:
replacing:
onCreate: function() { Ajax.activeRequestCount++ },
with
onCreate: function(resp) {
resp.transport.overrideMimeType("text/html; charset=ISO-8859-1");} ,
Maybe someone could document that so that no one else needs to spend a
lot of time trying to fix this (as i did)...
Or implement a proper fix, would work too ;-)
Tiago Becker
On Wed, Jul 1, 2009 at 5:39 PM, Tiago Becker<[email protected]> wrote:
>
> Hello!
>
> Is there a way to force prototype to respond with the corret encoding?
> I'm getting strange characters on my page (not the usual '?' char...
> seems like a square with "ff fd" chars on it...)
>
> I could fix this by encoding my python (backend) code with utf-8, but
> then it doesnt work on the server machine o_0
>
> I'm using prototype for about half an year now, and i needed another
> server, so i installed ubuntu 8.04.
> On the old machine, it was 6.06 and it worked well. I configured
> apache on the 8.04 machine exactly as the 6.06 one (ISO-8859-1).
>
> Thanks in advance,
>
> Tiago Becker
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---