Hi, I''m working on a french website and I use the Form.serialize method to send the info through AJAX. The thing is that the accentuated letters (é,ê,à, etc.) don''t get replaced by their HTML entities and they get corrupted when retrieving the data. How could I fix that? thanks a lot, Blaise Bernie
I have run into the same problem. It''s the javascript URIEncode function, I believe, that is the issue. Haven''t had time to research a workaround yet. Let me know if you figure one out. Greg> -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs- > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Blaise Bernier > Sent: Wednesday, March 22, 2006 10:57 AM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails-spinoffs] Serialized form... problems with accents > > Hi, > > I''m working on a french website and I use the Form.serialize method to > send the info through AJAX. The thing is that the accentuated letters > (é,ê,à, etc.) don''t get replaced by their HTML entities and they get > corrupted when retrieving the data. How could I fix that? > > thanks a lot, > > Blaise Bernie > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
I''m also using prototype to serialize forms with german umlauts ... I have no problems because I use UTF-8 as page-enconding .... What page encoding do you use? brgds sigi On 3/22/06, Gregory Hill <Gregory_Hill-l9nu40+TWxQ@public.gmane.org> wrote:> > I have run into the same problem. It''s the javascript URIEncode function, > I believe, that is the issue. Haven''t had time to research a workaround > yet. Let me know if you figure one out. > > Greg > > > -----Original Message----- > > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto: > rails-spinoffs- > > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Blaise Bernier > > Sent: Wednesday, March 22, 2006 10:57 AM > > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > Subject: [Rails-spinoffs] Serialized form... problems with accents > > > > Hi, > > > > I''m working on a french website and I use the Form.serialize method to > > send the info through AJAX. The thing is that the accentuated letters > > (é,ê,à, etc.) don''t get replaced by their HTML entities and they get > > corrupted when retrieving the data. How could I fix that? > > > > thanks a lot, > > > > Blaise Bernie > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >-- Mit freundlichen Grüßen Siegfried Puchbauer _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Sometimes I think I''m plain dumb... I''ll try to add encoding to my page! ------------------------------- I''m also using prototype to serialize forms with german umlauts ... I have no problems because I use UTF-8 as page-enconding .... What page encoding do you use? brgds sigi On 3/22/06, *Gregory Hill* <Gregory_Hill-l9nu40+TWxQ@public.gmane.org <mailto:Gregory_Hill-l9nu40+TWxQ@public.gmane.org>> wrote: I have run into the same problem. It''s the javascript URIEncode function, I believe, that is the issue. Haven''t had time to research a workaround yet. Let me know if you figure one out. Greg > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> [mailto:rails-spinoffs- <mailto:rails-spinoffs-> > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org>] On Behalf Of Blaise Bernier > Sent: Wednesday, March 22, 2006 10:57 AM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > Subject: [Rails-spinoffs] Serialized form... problems with accents > > Hi, > > I''m working on a french website and I use the Form.serialize method to > send the info through AJAX. The thing is that the accentuated letters > (é,ê,à, etc.) don''t get replaced by their HTML entities and they get > corrupted when retrieving the data. How could I fix that? > > thanks a lot, > > Blaise Bernie > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs <http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs> _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs -- Mit freundlichen Grüßen Siegfried Puchbauer
ISO-8859-1 I believe. Been meaning to switch to UTF-8 at some point, but last time I tried I just ended up breaking lots of things. Greg ________________________________ From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Siegfried Puchbauer Sent: Thursday, March 23, 2006 4:21 AM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails-spinoffs] Serialized form... problems with accents I''m also using prototype to serialize forms with german umlauts ... I have no problems because I use UTF-8 as page-enconding .... What page encoding do you use? brgds sigi On 3/22/06, Gregory Hill <Gregory_Hill-l9nu40+TWxQ@public.gmane.org> wrote: I have run into the same problem. It''s the javascript URIEncode function, I believe, that is the issue. Haven''t had time to research a workaround yet. Let me know if you figure one out. Greg> -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs- > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Blaise Bernier > Sent: Wednesday, March 22, 2006 10:57 AM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails-spinoffs] Serialized form... problems with accents > > Hi, > > I''m working on a french website and I use the Form.serialize method to > send the info through AJAX. The thing is that the accentuated letters > (é,ê,à, etc.) don''t get replaced by their HTML entities and they get > corrupted when retrieving the data. How could I fix that? > > thanks a lot, > > Blaise Bernie > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs -- Mit freundlichen Grüßen Siegfried Puchbauer _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs