in the case where escape doesn't work for you, you would have to substitute
a function that does what you want...  I tried 1 letter ö.

On 6/6/07, Mike Alsup <[EMAIL PROTECTED]> wrote:

Remember that escape and unescape don't work properly for non-ASCII
characters and have been deprecated.


http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Deprecated_Features#Escape_Sequences

Mike

On 6/6/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> Oscar,
> I've put together an ajax call that passes iso8859-1 instead of utf-8.
It's
> not pretty but shows that by doing your own serialize the server sees
iso
> chars instead of utf.
>
>  <script type="text/javascript" src="../js/jquery.js"></script>
> <script type="text/javascript"
> src="../plugins/debug/jquery.debug-pack.js"></script>
> <script type="text/javascript">
>     $(function(){
>         $.ajax({
>             url: "/test.cgi",
>             processData: false,
>             data: 'foo='+ escape('Jörn'),
>             success: function(){console.log (arguments)}
>             })
>     });
> </script>
>
>  hope it helps you.
>




--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

Reply via email to