Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with utf-8 validation

Status
Not open for further replies.

bmbb1

Programmer
Feb 12, 2007
1
US
w3c.org said that my document could not be checked because on line 142, 145 it contained one or more bytes that I cannot interpret at utf-8 (in other words, the bytes found are not valid values in the specified character encoding). How do I fix my paragraph formatting on those lines for utf-8 validation?

<h3 class="font2">What Exactly is Stained Glass?</h3>
<p class="normal">
Stained glass is the material of colored glass, most widely known for being used for creating windows. The glass is usually colored using metallic salts while it is still in liquid form, and then poured into a frame that gives it the different colored sections that make up the picture as a whole. If you ever have the chance to watch a stained glass window in the making, don’t pass it up. It requires great skill on the part of the designers, and is definitely interesting to watch. Here are some more details on the process of the creation of stained glass.
<br />
<br />
Before any materials are used, the stained glass window maker will plan out the entire project. This includes the exact pattern that will be used on the window, the amount of materials that will be used, and so on. Then, the frame for the window will be made. This isn’t just the outside outline, but the metal that the glass sits between. It used to be made by creating a mold in the shape of the metal, then pouring it in and letting it dry. The metal goes in between each individual piece of colored glass, and is usually shaped in some sort of ornamental way on the edges.
<br />
<br />
Next, after the metal frame has solidified, the maker will create a sort of color by number based on his previous plans. Many times, a certain color will be used in more than one square, so he will want to be sure to get all of it the first time. He can create a little map that will help him know which colors go where. After this, he can melt down the glass he will be using, into several different buckets (as many buckets as there are colors in his window). Each bucket will have the coloring added, usually some sort of salt that has been mined. It is what gives the glass its stained color. After he has the colors prepared, he simply pours the glass in to the corresponding sectors of the frame.
<br />
<br />
This process is much more complicated when it actually occurs, but it should give you an idea for what all goes in to the making of a stained glass window. Usually months of planning and crafting go into it before the actual work described here starts.
</p>
 
I tested your code here forcing it to use ISO 8859-1 (Western Europe) character encoding. This pointed out the lines with the broken characters:

[/code]
# Error Line 142 column 376: non SGML character number 146.

...ained glass window in the making, don??t pass it up. It requires great skill

# Error Line 145 column 268: non SGML character number 146.

...for the window will be made. This isn??t just the outside outline, but the me
[/code]

These are distunguished in FF 2.0 as this symbol ? and in IE 6.0 I see a ? in its place. Try replacing the ' as thats seems to be the char that is breaking it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top