$.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 -
-- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ