[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Some symbols can't not be shown under KDE 3.1.4 and CVS Head.

I found out why this page does not render properly, now whether it
should actually be considered a bug I don't know. It definitely is a
bug in there webpage (see below).

The reason for the problem is:

000000 4b 61 72 6d 61 92 73 0a 0a 0a 44 69 6d 65 6e 73
         K   a   r   m   a dc2   s  nl  nl  nl   D   i   m   e   n   s
000010 69 6f 6e 73 3a 20 32 2e 37 94 20 58 20 33 2e 30
         i   o   n   s   :  sp   2   .   7 dc4  sp   X  sp   3   .   0
000020 94 20 58 20 31 2e 31 94 0a 0a 0a 22 22 22 22 22
       dc4  sp   X  sp   1   .   1 dc4  nl  nl  nl   "   "   "   "   "
000030 0a 0a 0a 27 27 27 27 27 0a 0a 0a
        nl  nl  nl   '   '   '   '   '  nl  nl  nl

Notice it is not using proper ' and ". It is using extended ascii
characters for ' and ". It has also does not have a charset set in the
headers and it appears konqueror does not default to displaying
extended ascii characters at least if you are using UTF-8 like I am.


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Makes the page render correctly in konqueror. Although it probably
shouldn't render those characters anyway due to the following:

w3c.org validator fails to even validate the page until you mark it as
iso-8859-1 then it shows there are 38 errors in the page including:


“non SGML character number ###”

 You've used an illegal character in your text. HTML uses the standard ISO8859-1 character encoding, and ISO8859-1 leaves undefined 65 character codes (0 to 31 inclusive and 127 to 159 inclusive); the validator has found one of these undefined characters in your document. The character may appear on your browser as a curly quote, or a trademark symbol, or some other fancy glyph; on a different computer, however, it will likely appear as a completely different character, or nothing at all. 

Your best bet is to replace the character with the nearest equivalent ASCII character, or to use an appropriate character entity. For more information on ISO8859-1, see Alan Flavell's excellent ISO8859-1/HTML reference. 

This error can also be triggered by formatting characters embedded in documents by some word processors. If you use a word processor to edit your HTML documents, be sure to use the "Save as ASCII" or similar command to save the document without formatting information. 

So essentially someone needs to lart the webmaster at Rio.



Attachment: signature.asc
Description: Digital signature

Reply to: