BigNoseBird.Com- home Small Logo
The 508 compliant Guide to 
       Big Nose Bird
BACK

The Semicolon Solution to Problems
with Special Characters When There is No
Space Between Them.

This article was contributed by Mark Ture. Only the names have been changed to protect the innocent... My special thanks to Mark for his diligent research.

Hi Bruce Gronich, aka BigNoseBird.
---
Code Output w/o a ";" Output with a ";"
1. © © ©
2. MHT© MHT© MHT©
3. ©MHT &copyMHT ©MHT
4. MHT©MHT MHT&copyMHT MHT©MHT
The effects of a trailing semi-colon on special chars in web browsers.
The "&copy" as they appear in the source and the output are displayed in blue.
The optional semi-colons are displayed in red.

---

NOTE: Please have a look at the source code.

This table displays the reason why some (maybe all) browsers display the word "&copy" instead of the © symbol. A simple semi-colon was omitted from the abbreviation. The outputs for the first two rows look identical. That was expected. There are no letters immediately following the "&copy" in the source code. However, in the next two rows, the copyright symbol doesn't display correctly in the second column. This is due to the missing semi-colon. While the semi-colon is not needed for the first two cases, it is required for the next two because otherwise the browser is unable to separate the text "copy" from the following characters (MHT). To the browser, it looks like "copyMHT" and therefore doesn't recognize it as a copyright symbol.
I have seem this mistake of the omitted semi-colon many places on the web, including on XXXXXXXXX's web site (numerous times). Would it be possible for you to put a little something on your site? I guess it might just be a pet peeve of my own, but it is quite a common error.

Thanks for your time and consideration.

Mark Ture

P.S.-you have express written permission of Mark Ture for reproduction :)

For the full list of displayable characters, check out the ASCII CHART.



The Fine Print
Copyright © 1997 Mark Ture. All Rights Reserved. Reproduction in whole or in part in any form or medium without express written or typed permission of Mark Ture is prohibited.


Find or Give Help on the BBS
 
Home Top E-Mail
If it looks great, it's by Christine
Some Fine Print
© 1997-2003 BigNoseBird.Com®, Inc. All rights reserved. All other trademarks are the sole property of their respective owners. The products that we recommend are only ones that we use. We have no relationship with any of the authors or their companies. We cannot assume responsibility for their ultimate performance or lack of same. We also cannot assume responsibility for either any programs provided here, or for any advice that is given since we have no control over what happens after our code or words leave this site. Always use prudent judgment in implementing any program- and always make a backup first! For further information, please read our Privacy Statement. We can be contacted at webmaster@bignosebird.com.


<reallybig.com>
Web Builder Network Portal
Advertise
on the
Reallybig.com
Network
BigNoseBird Newsletter
Subscribe
Un-Subscribe


Sign up today to receive our low volume newsletter. Tips, tricks, news, and whatever else crosses our minds.
Back Issues
Privacy Statement