Problem with missing characters in CSE Validator Editor

For technical support for all editions of CSE HTML Validator. Includes bug reports.

Problem with missing characters in CSE Validator Editor

Postby jgcordes » Wed Feb 09, 2011 7:42 pm

Hello Albert,

Today I encountered a very strange problem. I am hoping that it is a software bug, as opposed to bad memory in my computer!

I have a 91 KB HTML file (937 lines). Here is one line from it:
<tr><td>05-02-1822</td><td>_____</td><td>CALDWELL</td><td>Ann Margaret</td><td>17y</td><td>Cole Harbour Rev Charles Ingles</td></tr>

Validator shows this:

<tr><td>05-02-1822</td><td>_____</td><td>CALDWELL/td><td>Ann Margaret</td><td>17y</td><td>Cole Harbour Rev Charles Ingles</td></tr>
and of course produces an Error message -- Note the lack of an opening angle bracket "<" following the word CALDWELL in the Validator editor.

I do my primary editing in Linux, but have also opened this particular file in two Windows editors (Notepad2 and Vim); no other editor besides Validator's has a problem showing this angle bracket.

Any ideas about this weird problem?

Who has a problem: you or me?!

I would be glad to send you this file if you want to examine it.

John Cordes
jgcordes
Rank II - Novice
Rank II - Novice
 
Posts: 28
Joined: Mon Sep 20, 2010 11:52 am

Re: Problem with missing characters in CSE Validator Editor

Postby Albert Wiersch » Wed Feb 09, 2011 9:21 pm

Hi John,

Yes, please email the file to me at support at htmlvalidator dot com. Also, please let me know what version of CSE HTML Validator you are using.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Problem with missing characters in CSE Validator Editor

Postby jgcordes » Wed Feb 09, 2011 9:34 pm

Have just emailed the file to you.

John
jgcordes
Rank II - Novice
Rank II - Novice
 
Posts: 28
Joined: Mon Sep 20, 2010 11:52 am

Re: Problem with missing characters in CSE Validator Editor

Postby Albert Wiersch » Wed Feb 09, 2011 10:13 pm

jgcordes wrote:Have just emailed the file to you.

John


Hi John,

Thanks for the file. I think the problem is that CSE HTML Validator is trying to open it as UTF-8 because that is what is specified in a "meta" tag, but your document contains invalid UTF-8 characters so I think that is causing the corruption.

Try using File->Open with Encoding and open the file with Western European (Windows) encoding or just "System codepage" encoding.

The problem character appears to be the '½' character on line 264 and at least one other line. I recommend using the character entity reference "&frac12;" instead. I think if you change all those '½' characters to the character reference and reload the document that it will then load properly in the future.

I suspect it works in other editors because they are not trying to load it as UTF-8, but CSE HTML Validator does because it looks for the "meta" tag that specifies the encoding and it sees "utf-8".
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Problem with missing characters in CSE Validator Editor

Postby jgcordes » Wed Feb 09, 2011 10:26 pm

Hi Albert,

Thanks -- sounds good. I will try implementing your suggestions, but I think it is getting too late for me tonight.

John
jgcordes
Rank II - Novice
Rank II - Novice
 
Posts: 28
Joined: Mon Sep 20, 2010 11:52 am

Re: Problem with missing characters in CSE Validator Editor

Postby jgcordes » Wed Feb 09, 2011 10:36 pm

Hi Albert,

I couldn't resist checking -- you were absolutely correct. I have changed those fractions to proper HTML entities.
Thanks!
John
jgcordes
Rank II - Novice
Rank II - Novice
 
Posts: 28
Joined: Mon Sep 20, 2010 11:52 am

Re: Problem with missing characters in CSE Validator Editor

Postby Albert Wiersch » Wed Feb 09, 2011 10:40 pm

Great! I'm glad that fixed it. :D
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron