I''m not sure I''ve got this correctly, but it looks as if Firefox and Konqueror encode XHR parameters as UTF-8, whereas IE6 uses ISO8859-1. Is this true? Is there a way to transparently normalize to one encoding? Michael -- Michael Schuerig Nothing is as brilliantly adaptive mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org as selective stupidity. http://www.schuerig.de/michael/ --A.O. Rorty, The Deceptive Self
> I''m not sure I''ve got this correctly, but it looks as if Firefox and > Konqueror encode XHR parameters as UTF-8, whereas IE6 uses ISO8859-1. > Is this true? Is there a way to transparently normalize to one > encoding?You need to send UTF-8 as both the charset in the HTTP request and specify it as a meta tag in the HTML, as far as I remember. If you do both, IE6 should be behaving as well. -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www.basecamphq.com -- Online project management http://www.backpackit.com -- Personal information manager http://www.rubyonrails.com -- Web-application framework
On Wednesday 26 October 2005 12:34, David Heinemeier Hansson wrote:> > I''m not sure I''ve got this correctly, but it looks as if Firefox > > and Konqueror encode XHR parameters as UTF-8, whereas IE6 uses > > ISO8859-1. Is this true? Is there a way to transparently normalize > > to one encoding? > > You need to send UTF-8 as both the charset in the HTTP request and > specify it as a meta tag in the HTML, as far as I remember. If you do > both, IE6 should be behaving as well.It does now, without changing anything. My problem must have been a fluke related to caching or something. Sorry for bothering. Michael -- Michael Schuerig The more it stays the same, mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org The less it changes! http://www.schuerig.de/michael/ --Spinal Tap, The Majesty of Rock
Michael Schuerig wrote:> On Wednesday 26 October 2005 12:34, David Heinemeier Hansson wrote: > >>>I''m not sure I''ve got this correctly, but it looks as if Firefox >>>and Konqueror encode XHR parameters as UTF-8, whereas IE6 uses >>>ISO8859-1. Is this true? Is there a way to transparently normalize >>>to one encoding? >> >>You need to send UTF-8 as both the charset in the HTTP request and >>specify it as a meta tag in the HTML, as far as I remember. If you do >>both, IE6 should be behaving as well. > > > It does now, without changing anything. My problem must have been a > fluke related to caching or something. Sorry for bothering. > > Michael >I''ve noticed inconsistent behaviour with character sets before in IE6 on the same page on subsequent reloads. Make sure it still works once you''ve closed and re-opened IE, or it might come back to bite you... ( Better still, write a functional test that calls watir twice to make sure you can''t regress :-) ) -- Alex