13 replies [Last post]
Smee
Smee's picture
Offline
Elder
Adelaide, Oz
Last seen: 4 years 24 weeks ago
Adelaide, Oz
Timezone: GMT+9.5
Joined: 2007-06-10
Posts: 1596
Points: 340

Hi Guys - I'm going through and re-validating things and what I thought was a clean page, actually got skewered by Vlad saying it couldn't even be checked!! Shock Though it was a warning, Vlad said:

Quote:
Sorry, I am unable to validate this document because on line 448 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication.

The error was: utf8 "\x96" does not map to Unicode

So I viewed source, copied the lot into a blank page in my editor to get line numbers and line 448 is this:

Quote:
and be able then to perceive something that happened to you when you were nine

What's Vlad on about please? :?

The page in question is here

Mods and gurus – THANK YOU!
For your time, knowledge and experience so willingly and generously given.
Please come back tomorrow and sort us all out again Smile

DanA
DanA's picture
Offline
Elder
Last seen: 11 years 30 weeks ago
Timezone: GMT+2
Joined: 2004-08-14
Posts: 1087
Points: 2

What happens if you fix the

What happens if you fix the following :
the 4th Quartet called "Little Gidding". Here�s the quote. Eliot writes [...]
Jews � men [...]
we�re [...]
a revolution isn�t it [...]
or spirit life � all unified [...]
...

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 39 weeks 5 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

You have (inadvertently?)

The Impaler speaks Romanian, a Latin language, not Greek.Smile

You have (inadvertently?) saved the document as windows-1252 instead of utf-8.

cheers,

gary

BTW: This,

Quote:
The Romans massacred approximately half a million Jews – men, women and children.
was the first clue for me. The MS proprietary character encoding uses non standard binary values for hyphens, primes and double primes, et al. That should be an — (em dash), rather than a hyphen, like so:
Quote:
The Romans massacred approximately half a million Jews—men, women and children.
with no spaces, or use a   (hair space) or   (thin space) on either side of the em dash. --g

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

Smee
Smee's picture
Offline
Elder
Adelaide, Oz
Last seen: 4 years 24 weeks ago
Adelaide, Oz
Timezone: GMT+9.5
Joined: 2007-06-10
Posts: 1596
Points: 340

Hi Gary... Quote:The

Hi Gary...

Quote:
The Impaler speaks Romanian, a Latin language, not Greek. Smile

Laughing out loud That would explain it then!

Quote:
You have (inadvertently?) saved the document as windows-1252 instead of utf-8.

Ummm...it was a Word doc that's true, but I'm pretty sure in this case I copied and styled a para at a time so that I could retype all the 'specials' as I went. I've given up opening Word docs in the editor 'cos what it thinks is a conversion/translation just doesn't jell with my idea of one Smile

Quote:
The MS proprietary character encoding uses non standard binary values for hyphens, primes and double primes, et al. That should be an — (em dash), rather than a hyphen, like so:

Time to 'fess up :ohdear: - I think I may have been a bit naughty here and this is obviously the time and place I'm about to get my fingers tapped :blushing:

I discovered if I retyped the special character in the editor it displayed just fine in both FF and IE6. So that's what I've done. All the way through. I figured if it worked for " - and we enclose everything in quotes - then it should work for icks and hyphens and exclamations and things as well. Or not?

It would seem or not. DanA what are you viewing the site with please? I don't see the question marks unless I've forgotten to retype a character. The page displays fine for me in both FF and IE6.

Mods and gurus – THANK YOU!
For your time, knowledge and experience so willingly and generously given.
Please come back tomorrow and sort us all out again Smile

DanA
DanA's picture
Offline
Elder
Last seen: 11 years 30 weeks ago
Timezone: GMT+2
Joined: 2004-08-14
Posts: 1087
Points: 2

The question marks were

The question marks were where the wrong characters were...

Smee
Smee's picture
Offline
Elder
Adelaide, Oz
Last seen: 4 years 24 weeks ago
Adelaide, Oz
Timezone: GMT+9.5
Joined: 2007-06-10
Posts: 1596
Points: 340

Hi DanA Quote:The question

Hi DanA

Quote:
The question marks were where the wrong characters were...

Yes, I know the characters show as question marks if I've forgotten, or missed, retyping them. If I then go and retype them, the question marks disappear.

But I'm not seeing question marks in the section you quoted. What browser are you using please?

What initially had me confused was that there were no special characters in line 447, 448 or 449. I obviously didn't get the line numbering correct though because I just went through and found a few more and retyped them and now the Vladidator is quite happy.

Mods and gurus – THANK YOU!
For your time, knowledge and experience so willingly and generously given.
Please come back tomorrow and sort us all out again Smile

DanA
DanA's picture
Offline
Elder
Last seen: 11 years 30 weeks ago
Timezone: GMT+2
Joined: 2004-08-14
Posts: 1087
Points: 2

The question marks didn't

The question marks didn't appear in my browser as I use SeaMonkey and as the code is cleaned on the fly. I added them for the first errors that I found comparing the online code with errors with the offline code I captured using Scrapbook where there was no error.
If you use IE, the errors will appear as squares, not as question marks.

Smee
Smee's picture
Offline
Elder
Adelaide, Oz
Last seen: 4 years 24 weeks ago
Adelaide, Oz
Timezone: GMT+9.5
Joined: 2007-06-10
Posts: 1596
Points: 340

Thanks DanA - anything else

Thanks DanA - anything else obviously wrong with the site in Sea Monkey?

Mods and gurus – THANK YOU!
For your time, knowledge and experience so willingly and generously given.
Please come back tomorrow and sort us all out again Smile

DanA
DanA's picture
Offline
Elder
Last seen: 11 years 30 weeks ago
Timezone: GMT+2
Joined: 2004-08-14
Posts: 1087
Points: 2

There is still a HTML error

There is still a HTML error and there are a few css declarations dropped.

Smee
Smee's picture
Offline
Elder
Adelaide, Oz
Last seen: 4 years 24 weeks ago
Adelaide, Oz
Timezone: GMT+9.5
Joined: 2007-06-10
Posts: 1596
Points: 340

Yes, I'm aware of the 'name'

Yes, I'm aware of the 'name' thing which I have to deal with in a few pages but I don't what you mean by

Quote:
there are a few css declarations dropped

Mods and gurus – THANK YOU!
For your time, knowledge and experience so willingly and generously given.
Please come back tomorrow and sort us all out again Smile

DanA
DanA's picture
Offline
Elder
Last seen: 11 years 30 weeks ago
Timezone: GMT+2
Joined: 2004-08-14
Posts: 1087
Points: 2

Apart from declarations

Apart from declarations dropped because they are Microsoft proprietary these are the CSS declaration dropped by any browser :

Warning: Error in parsing value for property 'width'. Declaration dropped.
Source File: http://www.nasmsite.com/nasm.css
Line: 36

Warning: Expected end of value for property but found 'text-align'. Error in parsing value for property 'font-size'. Declaration dropped.
Source File: http://www.nasmsite.com/nasm.css
Line: 214

Warning: Unknown property 'inherit'. Declaration dropped.
Source File: http://www.nasmsite.com/nasm.css
Line: 386

Warning: Expected ',' or '{' but found '('. Ruleset ignored due to bad selector.
Source File: http://www.nasmsite.com/nasm.css
Line: 409

Warning: Expected end of value for property but found 'text-align'. Error in parsing value for property 'font-size'. Declaration dropped.
Source File: http://www.nasmsite.com/nasm.css
Line: 562

Smee
Smee's picture
Offline
Elder
Adelaide, Oz
Last seen: 4 years 24 weeks ago
Adelaide, Oz
Timezone: GMT+9.5
Joined: 2007-06-10
Posts: 1596
Points: 340

Hi DanA I really

Hi DanA

I really appreciate this - thanks. I created some of those this afternoon! Laughing out loud

However the first error is new to me - it's complaining about the width in this -

* html #container { width: expression(document.documentElement.clientWidth < 700 ? "700px" : document.documentElement.clientWidth > 800 ? "800px" : "80%"); }

The others are now fixed I hope (silly punctuation mostly) but I don't know how to get around this.

However I can't check because the validator apparently stops at this and has always given me this error, but I never realised it wasn't checking past that statement until now! :blushing: -

36 Lexical error at line 36, column 98. Encountered: "?" (63), after : ""

In other words, I've been labouring under the fond delusion that the css file was ok except for the * html and it was always going to complain about it.

Mods and gurus – THANK YOU!
For your time, knowledge and experience so willingly and generously given.
Please come back tomorrow and sort us all out again Smile

DanA
DanA's picture
Offline
Elder
Last seen: 11 years 30 weeks ago
Timezone: GMT+2
Joined: 2004-08-14
Posts: 1087
Points: 2

Line 36, the validator

Line 36, the validator complains about expression which is Microsoft proprietary (behavior and zoom too).
You can live with these errors or move them between conditional comments.

Smee
Smee's picture
Offline
Elder
Adelaide, Oz
Last seen: 4 years 24 weeks ago
Adelaide, Oz
Timezone: GMT+9.5
Joined: 2007-06-10
Posts: 1596
Points: 340

Thanks - I put it in the css

Thanks - I put it in the css originally to avoid duplicating it on every html page - guess I might have to rethink that Smile

Mods and gurus – THANK YOU!
For your time, knowledge and experience so willingly and generously given.
Please come back tomorrow and sort us all out again Smile