Home Resources Forum Advertise Contact

Go Back   Webmaster Forums > Web Designing and Development > Web Resource Centre

Web Resource Centre The web is full of FREE resources in various forms. It could be a software, a service, a consultation, etc etc. But how would you know which ones are good and which ones to stay away from? Well, dear webmasters, share your recommendations and critics about the web's FREE resources here!

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 11th December 2006, 09:39 PM
hassen1 hassen1 is offline
WD Addict Poster
 
Join Date: 29th October 2006
Posts: 2,603
Send a message via Yahoo to hassen1
Default How do i get special characters in my html?

The previous Q&A addressed the special case of the less-than ('<'), greater-than ('>'), and ampersand ('&') characters. In general, the safest way to write HTML is in US-ASCII (ANSI X3.4, a 7-bit code), expressing characters from the upper half of the 8-bit code by using HTML entities.

Working with 8-bit characters can also be successful in many practical situations: Unix and MS-Windows (using Latin-1), and also Macs (with some reservations).

Latin-1 (ISO-8859-1) is intended for English, French, German, Spanish, Portuguese, and various other western European languages. (It is inadequate for many languages of central and eastern Europe and elsewhere, let alone for languages not written in the Roman alphabet.) On the Web, these are the only characters reliably supported. In particular, characters 128 through 159 as used in MS-Windows are not part of the ISO-8859-1 code set and will not be displayed as Windows users expect. These characters include the em dash, en dash, curly quotes, bullet, and trademark symbol; neither the actual character (the single byte) nor its &#nnn; decimal equivalent is correct in HTML. Also, ISO-8859-1 does not include the Euro currency character. (See the last paragraph of this answer for more about such characters.)

On platforms whose own character code isn't ISO-8859-1, such as MS-DOS and Mac OS, there may be problems: you have to use text transfer methods that convert between the platform's own code and ISO-8859-1 (e.g., Fetch for the Mac), or convert separately (e.g., GNU recode). Using 7-bit ASCII with entities avoids those problems, but this FAQ is too small to cover other possibilities in detail.

If you run a web server (httpd) on a platform whose own character code isn't ISO-8859-1, such as a Mac or an IBM mainframe, then it's the job of the server to convert text documents into ISO-8859-1 code when sending them to the network.

If you want to use characters not in ISO-8859-1, you must use HTML 4 or XHTML rather than HTML 3.2, choose an appropriate alternative character set (and for certain character sets, choose the encoding system too), and use one method or other of specifying this.

See also
FAQ Entry: Which should I use, &entityname; or &#number; ?
WDG's ISO 8859-1 character set overview
W3C's HTML 4.01 Recommendation
Alan Flavell's i18n: HTML Character set issues beyond HTML3.2
Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
You don't need special techniques for SEO summerbreeze88 SEO Talk 4 18th May 2007 02:37 PM
Using special ecourses hassen1 Affiliate Programs Review 1 2nd May 2007 01:35 PM
Where can i learn about html? hassen1 Web Resource Centre 0 11th December 2006 09:33 PM
Special provision for legacy opt-out cookies hassen1 Security Policies 0 9th December 2006 03:48 AM
What's special in CJ that makes it so attractive? maggots Commission Junction 3 29th June 2006 12:19 AM


All times are GMT -4. The time now is 06:07 PM.


Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC6
vB Ad Management by =RedTyger=