From: Karl E. Peterson on 6 Jan 2010 21:37 Hi -- Okay, so how does one go about forcing character encoding? I thought that by having this in the <head> section: <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> That a browser would automatically choose to use ISO-8859-1, but for some inexplicable reason I've seen pages lately where both Firefox and IE8 choose to use Unicode instead. These are just pretty straight-up ASP pages, with this as the very first line: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> They're full of the diamond-question mark char, though. Ideas? Thanks... Karl -- ..NET: It's About Trust! http://vfred.mvps.org
From: "Trevor Lawrence" Trevor on 6 Jan 2010 22:50 I thought that I read somewhere in this or another NG that the server decides what character code to use. But I am sure that someone with more knowledge than I will reply -- Trevor Lawrence Canberra Web Site http://trevorl.mvps.org "Karl E. Peterson" <karl(a)exmvps.org> wrote in message news:%23Vv7OJ0jKHA.4872(a)TK2MSFTNGP05.phx.gbl... > Hi -- > > Okay, so how does one go about forcing character encoding? I thought that > by having this in the <head> section: > > <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> > > That a browser would automatically choose to use ISO-8859-1, but for some > inexplicable reason I've seen pages lately where both Firefox and IE8 > choose to use Unicode instead. > > These are just pretty straight-up ASP pages, with this as the very first > line: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > > They're full of the diamond-question mark char, though. Ideas? > > Thanks... Karl > > -- > .NET: It's About Trust! > http://vfred.mvps.org > >
From: Hot-text on 7 Jan 2010 00:01 It not the webpage! it is your Firefox and IE8 set to Unicode! http://en.wikipedia.org/wiki/Character_encodingISO-8859-1 <<<<< Character encoding translation and <<<< See also Windows code page - various character set encodings used by Microsoft Windows>>>> <<<http://en.wikipedia.org/wiki/Windows_code_page ISO 8859-1 Western Europe ISO 8859-2 Western and Central Europe ISO 8859-3 Western Europe and South European ( Turkish, Maltese plus Esperanto ) ISO 8859-4 Western Europe and Baltic countries ( Lithuania, Estonia and Lapp ) And can do MS-Windows character sets: Windows-1252 for Western languages <meta http-equiv="Content-Type" content="text/html;charset=Windows-1252"> "Karl E. Peterson" <karl(a)exmvps.org> wrote in message news:#Vv7OJ0jKHA.4872(a)TK2MSFTNGP05.phx.gbl... > Hi -- > > Okay, so how does one go about forcing character encoding? I thought that > by having this in the <head> section: > > <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> > > That a browser would automatically choose to use ISO-8859-1, but for some > inexplicable reason I've seen pages lately where both Firefox and IE8 > choose to use Unicode instead. > > These are just pretty straight-up ASP pages, with this as the very first > line: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > > They're full of the diamond-question mark char, though. Ideas? > > Thanks... Karl > > -- > .NET: It's About Trust! > http://vfred.mvps.org > >
From: Ronx on 7 Jan 2010 02:49 As Trevor said, if the server sends an HTTP header that sets the character encoding, the browser will use that encoding rather than the meta tag version. -- Ron Symonds Microsoft MVP (Expression Web) http://www.rxs-enterprises.org/fp Reply only to group - emails will be deleted unread. "Karl E. Peterson" <karl(a)exmvps.org> wrote in message news:#Vv7OJ0jKHA.4872(a)TK2MSFTNGP05.phx.gbl... > Hi -- > > Okay, so how does one go about forcing character encoding? I thought that > by having this in the <head> section: > > <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> > > That a browser would automatically choose to use ISO-8859-1, but for some > inexplicable reason I've seen pages lately where both Firefox and IE8 > choose to use Unicode instead. > > These are just pretty straight-up ASP pages, with this as the very first > line: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > > They're full of the diamond-question mark char, though. Ideas? > > Thanks... Karl > > -- > .NET: It's About Trust! > http://vfred.mvps.org > >
From: Karl E. Peterson on 7 Jan 2010 12:31
Trevor Lawrence explained on 1/6/2010 : > I thought that I read somewhere in this or another NG that the server decides > what character code to use. But I am sure that someone with more knowledge > than I will reply Y'know, now that you say that, that does sound familiar. And I'm seeing *identical* pages coming from different servers behaving differently. I gotta pursue that angle. Thanks! -- ..NET: It's About Trust! http://vfred.mvps.org |