Hi - i''m trying to include some double byte characters in the parameters property of my ajax call. I am ''escape()'' ing the text before i pass it in so it looks something like &FIELD3=%u4E2D%u6587%uFF08%u7E41%u9AD4%uFF09 but when i make the call i get an error ''The URL to be decoded is not a valid encoding'' TGhis is a general JS error not one raised by prototype. Can prototype handle double byte characters and if so what am i doing wrong. I am using the most recent version of prototype cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Try substituting encodeURIComponent() for escape() and see how that goes for you. Walter On Apr 26, 2008, at 9:21 PM, gazza wrote:> > Hi - i''m trying to include some double byte characters in the > parameters property of my ajax call. I am ''escape()'' ing the text > before i pass it in so it looks something like > > &FIELD3=%u4E2D%u6587%uFF08%u7E41%u9AD4%uFF09 > > but when i make the call i get an error > > ''The URL to be decoded is not a valid encoding'' > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
superb !! - all sorted. Many thanks for your help. On Apr 27, 10:49 am, Walter Lee Davis <wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote:> Try substituting encodeURIComponent() for escape() and see how that > goes for you. > > Walter > > On Apr 26, 2008, at 9:21 PM, gazza wrote: > > > > > > > Hi - i''m trying to include some double byte characters in the > > parameters property of my ajax call. I am ''escape()'' ing the text > > before i pass it in so it looks something like > > > &FIELD3=%u4E2D%u6587%uFF08%u7E41%u9AD4%uFF09 > > > but when i make the call i get an error > > > ''The URL to be decoded is not a valid encoding''- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---