OZONE Asylum
FAQ
What exactly is encoding, and why do I need it?
This page's ID:
5528
Search
QuickChanges
Forums
FAQ
Archives
Register
You are editing "What exactly is encoding, and why do I need it?"
Who can edit an FAQ?
Anyone registered may edit an FAQ.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Encoding. If it's done properly, your visitors will never even think about it. If it's not done properly (or at all), some of your international visitors may not even be able to read parts of your site--and that is [b]definitely not[/b] a Good Thing. For the impatient types out there, English language files should include the following meta tag in the <head> area: <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> Note: preceding markup is superfluous to, inferior to, and superseded by server-specified encoding. Simply speaking, "encoding" refers to the language in which the content of your HTML or XHTML page is written, and it is specified by a single line of code. If you do not specify your encoding, browsers visiting your site will attempt to figure out which encoding to use. In practice, though, browsers will end up trying to read the page in the language that the user has specified as their default. This means that if you have an English speaker visit your English language site, they probably won't notice the difference even if you don't specify your encoding. However, non-English speakers will most likely see a jumble of characters or ASCII gibberish whenever you use a special character (in other words, anything that you cannot type directly from your keyboard--arrows, curved quotes, em dashes and ellipses are some examples). As we mentioned at the top, if you specify the proper encoding, the visitor will never realize that anything has been done--and isn't that the way it should be? If you are interested in becoming a broad-minded, responsible web designer, always specify your encoding. Your international visitors will thank you. For more information on encoding, you can read about [url=http://www.w3.org/TR/REC-html40/charset.html]HTML Document Representation[/url] in the HTML 4.01 Spec at the [url=http://www.w3c.org] W3C[/url]. They also have some information about [url=http://www.w3.org/International/O-charset.html]character encoding[/url] in their [url=http://www.w3.org/International/resources.html]Internationalization Resources[/url] section. And, if you do decide to use ISO-8859-1 encoding, the W3C has a handy list of [url=http://www.w3.org/TR/REC-html40/sgml/entities.html#h-24.2]character entity references[/url] that you will want to use for high-bit characters (what I referred to as "special characters" above--curly quotes, em dashes, etc.). [This FAQ entry has been brought to you by the Society for the Promotion of Encoding Awareness.] ------------------- Relevant FAQs: [internallink=5499]What meta tags do I need to add to my webpage?[/internallink] Relevant Threads: [url=http://www.ozoneasylum.com/Forum1/HTML/006470.html]Why doesn't the Asylum have encoding?[/url] __________________ [small][i](Added by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Suho1004]Suho1004 [/url] on Sun 19-Jan-2003)[/i][/small] [small][i](Edited by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Suho1004]Suho1004 [/url] on Sun 19-Jan-2003)[/i][/small] [small][i](Edited by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Emperor]Emperor [/url] on Sun 19-Jan-2003)[/i][/small] [small][i](Edited by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Emperor]Emperor [/url] on Sun 19-Jan-2003)[/i][/small] [small][i](Edited by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Suho1004]Suho1004 [/url] on Sun 29-Jun-2003)[/i][/small] [small](Edited by [url=http://www.ozoneasylum.com/user/5575]reisio[/url] on 07-11-2006 13:20)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »