Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#247659 - 26/01/2005 21:03 Stupid web-browser question o' the day...
DLF
addict

Registered: 24/07/2003
Posts: 500
Loc: Colorado, N.A.
So when some web pages have double quote marks in their source, they render in my copy of Firefox as little black diamonds w/white ? marks. Is this something wrong under my Language Options or default character encoding (ISO-8859-1), or just sloppy HTML coding?
_________________________
-- DLF

Top
#247660 - 26/01/2005 22:08 Re: Stupid web-browser question o' the day... [Re: DLF]
hybrid8
carpal tunnel

Registered: 12/11/2001
Posts: 7738
Loc: Toronto, CANADA
Sample page? I haven't noticed this.

Bruno
_________________________
Bruno
Twisted Melon : Fine Mac OS Software

Top
#247661 - 26/01/2005 23:01 Re: Stupid web-browser question o' the day... [Re: hybrid8]
DLF
addict

Registered: 24/07/2003
Posts: 500
Loc: Colorado, N.A.
So far, the common denominator has been ASP pages made using M$ FrontPage, so I'm about ready to ignore the problem as sloppy HTML coding for sure. Problem is, it's my intranet's corporate standard. So to make a short story long, all my ready examples are inside my firewall. I'll post again the next time I encounter it on a page of the greater 'net.
_________________________
-- DLF

Top
#247662 - 27/01/2005 06:49 Re: Stupid web-browser question o' the day... [Re: DLF]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5680
Loc: London, UK
Quote:
...double quote marks...


Yeah, well they'll have been written using MS Word, and it'll have used "smart quotes". These are outside the normal 0-127 character set, and unless the webserver tells the browser which character set to use, it'll render them wrongly.

Now, IE gets around this problem by using some "heuristics" to spot whether a page is Latin1 or UTF8 or whatever, but I think that Firefox actually trusts what the web server is telling it.

Or something like that. I'm sure Peter will jump in and correct me.
_________________________
-- roger

Top
#247663 - 27/01/2005 08:36 Re: Stupid web-browser question o' the day... [Re: DLF]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4172
Loc: Cambridge, England
Quote:
Is this something wrong under my Language Options or default character encoding (ISO-8859-1), or just sloppy HTML coding?

As Roger says, it's sloppy HTML coding -- the quote marks in question are likely to be literal 0x91..0x94 octets inserted by Word or some other Windows-centric editor. However, unless the page has gone so far wrong as to include those characters but still explicitly set an ISO-8859-1 encoding, you can probably solve the problem by setting the default encoding to Windows Codepage 1252. Certainly Mozilla lets you do this, so I assume Firefox does too. Windows Codepage 1252 is the same as ISO-8859-1 except it has all the Windows nonstandard extension characters between 0x80..0x9F, including the quotes.

For reference for those writing their own pages, there were two right ways for the webmaster to have done it: use the character entities ” and “, or switch to UTF-8 encoding and use U+2018 etc.

Peter

Top
#247664 - 28/01/2005 19:21 Re: Stupid web-browser question o' the day... [Re: peter]
DLF
addict

Registered: 24/07/2003
Posts: 500
Loc: Colorado, N.A.
Thanks much, Peter. That is the *exact* explanation I was groping for!

BTW, an example in Firefox would be here on this (Colorado) web page.
_________________________
-- DLF

Top