Miguel,
I am having a similar problem and have spent many hours looking for an
answer.The answer I always get is: "serve it as UTF-8", which requires
the program answering the AJAX call to do the conversion.
Unfortunately the system I am using does not allow me to do this and I
need to support French characters.
It seem the "encoding" parameter specifies the encoding of the
REQUEST, not the RESPONSE.
The only way I have figured out on how to get around this whole
problem is NOT to use AJAX. I am experimenting with simply pulling the
content into a hidden Iframe, that grabbing the response and shoving
it into the appropriate DIV. like this:
<div id="A">###</div>
<a href="javascript://" onclick="run()">go</a>
<br />
<iframe id="AJ" style="height:200px;width:600px"></iframe>
<script type='text/javascript'>
function run() {
$('AJ').src="http://......some URL"
}
function fill() {
$('A').innerHTML = $("AJ").contentWindow.document.body.innerHTML
}
$('AJ').onload=function() {
fill()
}
</script>
I hope this helps.
On Apr 24, 12:23 pm, "Miguel Beltran R." <[email protected]> wrote:
> Hi list
>
> Here in my job the system use MS Sql Server 2000 what not have support
> utf-8, so I need work with ISO-8859-1.
> Using Ajax this send the parameters with encoding utf-8, after read a lots
> post I tried with the options
> modifica: function(evt){
> evt.stop();
> console.log("estro a modifica");
> $('estado').update("cargando...");
> var req = $('main_form').request({
> encoding: 'iso-8859-1',
> onCreate: function(resp) {
> resp.transport.overrideMimeType("text/html;
> charset=ISO-8859-1");
> }});
>
> req=null;
> }
>
> but not work :(
>
> User-AgentMozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.9.0.1)
> Gecko/2008070208 Firefox/3.0.1
> Accepttext/javascript, text/html, application/xml, text/xml, */*
> Accept-Languagees-mx,es;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encodinggzip,deflate
> Accept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive300
> Connectionkeep-alive
> X-Requested-WithXMLHttpRequest
> X-Prototype-Version1.6.0.3
> Content-Typeapplication/x-www-form-urlencoded; charset=UTF-8 <-- still use
> utf-8
>
> can someone give me a tip?
>
> --
> ________________________________________
> Lo bueno de vivir un dia mas
> es saber que nos queda un dia menos de vida
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---