Hi I have been on holidays and I have not time to test it. In order to keep in mind: I need to dowload from your brach. I am using jquery 1.2 .. Then If I take the jquery from your brach it is a standar jquery 1.2 + your modifications for enconding? I am worry ... to be sure that are the same versión that I am using.
Then: 1- set set ajaxSetup: ajaxSetup({contentType: "application/x-www-form-urlencoded; charset=iso-8859-1"}) 2- After that all params of ajaxCall like: jQuery.ajax({ type: "POST", url: url, data: param, async: false, dataType: "html" }; Params will be in iso-8859-1¿? On 10 jun, 19:53, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > keep me posted!! You may also need : > > ajaxSetup({contentType: "application/x-www-form-urlencoded; charset=<whatever > charset you want to call it>"}) > > On 6/10/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote: > > > > > > > > > Oscar, > > > you can play with the jQuery from my branch (not released, and just to try > > it... no guarantees!!) > > >http://jqueryjs.googlecode.com/svn/branches/jake-dev/dist/ > > > On 6/10/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote: > > > > oops! that's on the googlegroups site. > > > > On 6/10/07, Ⓙⓐⓚⓔ < [EMAIL PROTECTED]> wrote: > > > > > $.pair = function(f,v) {return escape(f) + "=" + escape(v)}; > > > > > and all your 'get' parameters use the new encoding. If you care to > > > > test... I'll save up a full version on the > > > > > escape is brain dead , as it won't work with the full range of UTF... > > > > but the classic hi-ascii chars seem to work.. I tested with a ö (only) > > > > > On 6/10/07, oscar esp < [EMAIL PROTECTED]> wrote: > > > > > > You are the man!!!! :-P > > > > > > In order to use it..... then I only need add the js ¿? or I need to > > > > > call a extra code!!! > > > > > > On 10 jun, 18:44, "Ⓙⓐⓚⓔ" < [EMAIL PROTECTED] > wrote: > > > > > > Hey Oscar, You were the reason I wrote this patch!!! Plus I had no > > > > > beautiful > > > > > > way to do non-utf encoding > > > > > > > A couple people came up with other solutions, but I like mine > > > > > best, and it > > > > > > shrinks the jQuery size a few bytes. > > > > > > > On 6/10/07, oscar esp <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi I have a problem realted with charsets as you know. > > > > > > > > Could I use this code in order to fix my problem? > > > > > > > > On 10 jun, 06:00, "Ⓙⓐⓚⓔ" < [EMAIL PROTECTED]> wrote: > > > > > > > >http://dev.jquery.com/ticket/1289 > > > > > > > > > On 6/9/07, Brandon Aaron < [EMAIL PROTECTED]> wrote: > > > > > > > > > > Be sure to add this to trac. > > > > > > > > > > -- > > > > > > > > > Brandon Aaron > > > > > > > > > > On 6/9/07, Ⓙⓐⓚⓔ < [EMAIL PROTECTED] > wrote: > > > > > > > > > > > I also added to the patch renaming the parameter 'xml' and > > > > > sometimes > > > > > > > 'r' > > > > > > > > > > to 'xhr'. I think it makes it easier to read. > > > > > > > > > > >http://jqueryjs.googlecode.com/svn/branches/jake-dev/src/ajax/ajax.js > > > > > > > > > > > On 6/7/07, Mike Alsup < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > I like this patch. Jörn? Brandon? John? Anyone? > > > > > > > > > > > > > alternate encoding done cleanly... > > > > > > > >http://jqueryjs.googlecode.com/svn/branches/jake-dev/src/ajax/ajax.js > > > > > > > > > > > > > a small patch allows escape (or other) instead of > > > > > > > encodeURIComponent > > > > > > > > > > > > > while localizing all calls to encodeURIComponent > > > > > > > > > > > > this patch seems to make the packed size of jQuery > > > > > even smaller. > > > > > > > > > > > > > $.pair is used in param (serialize) and can easily be > > > > > overriden. > > > > > > > > > > > > > as in > > > > > > > > > > > > $.pair = function(f,v) {return escape(f) + "=" + > > > > > escape(v)}; > > > > > > > > > > > > $.ajax({ > > > > > > > > > > > > url: "/test.cgi", > > > > > > > > > > > > data: {foo:'Jörn'}, > > > > > > > > > > > > success: function(){ console.log(arguments)} > > > > > > > > > > > > }) > > > > > > > > > > > -- > > > > > > > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ > > > > > > > > > -- > > > > > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ- Ocultar texto de la cita - > > > > > > > > > - Mostrar texto de la cita - > > > > > > > -- > > > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ- Ocultar texto de la cita - > > > > > > > - Mostrar texto de la cita - > > > > > -- > > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ > > > > -- > > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ > > > -- > > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ > > -- > Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ- Ocultar texto de la cita - > > - Mostrar texto de la cita -