homepage Welcome to WebmasterWorld Guest from 54.205.247.203
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
declaring character encoding
rakan




msg:602264
 7:56 pm on Sep 29, 2005 (gmt 0)

I am trying to validate my htm document. I have specified transitional HTML 4.01 and UTF-8 character encoding. When I attempt to validate using the W3C validator found at [validator.w3.org...] it fails my code because of the ampersand symbol in some of the sites I link to and because of the copyright symbol at the bottom of my pages. Is there a character encoding I can declare so it won't do this? Thanks.

 

Robin_reala




msg:602265
 8:36 pm on Sep 29, 2005 (gmt 0)

This probably isn't a character encoding issue. Ampersands in links should be declared as & instead of &.

rakan




msg:602266
 8:55 pm on Sep 29, 2005 (gmt 0)

Thanks, that works. This site is awesome.

encyclo




msg:602267
 12:25 am on Sep 30, 2005 (gmt 0)

For the copyright symbol, what is the error you are getting? Assuming the page is really encoded as UTF-8 (rather than being encoded as ISO-8859-1 but declared as UTF-8), then the symbol should validate fine.

Farix




msg:602268
 12:33 am on Sep 30, 2005 (gmt 0)

Use © instead for the copyright symbol.

encyclo




msg:602269
 12:27 pm on Sep 30, 2005 (gmt 0)

Use © instead for the copyright symbol.

The thing is, if you are using UTF-8, then you shouldn't need to have to use the © character entity - unless the actual encoding of the page is not actually UTF-8. If the page is in English, for example, there is very little difference in usual circumstances, so you can't always tell at first.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved