Yup, doing it in UTF-8 end-to-end seems to be the right solution. We
are converting our database as well.

On Apr 29, 10:04 am, "Miguel Beltran R." <yourpa...@gmail.com> wrote:
> 2009/4/26 Diodeus <diod...@gmail.com>
>
>
>
>
>
> > 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://......someURL";
> >        }
> > function fill() {
> >        $('A').innerHTML = $("AJ").contentWindow.document.body.innerHTML
> > }
> > $('AJ').onload=function() {
> > fill()
> > }
> > </script>
>
> > I hope this helps.
>
> Thanks Diodeus
> I resolve converting the the data on side-server before insert/update
> I use Zope 2.11, in a zsql method make this
> update foo
> set string_field = <dtml-sqlvar "_.str(parameter1).decode('utf-8')"
>
> The data was send by ajax (from a form) using utf-8 is decode to ascii
> (parameter1)
--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to