If you are forced for some reason to use a more limited charset like iso-8859-1, and you want to use a character not in the charset, like a Greek Theta (Θ) for instance, you’ll have to encode it as an entity by typing its corresponding code: &Theta. This means you’ll be able to use any character that’s in UTF-8 by simply typing it into the document. To make sure all browsers know this is the character set you’re using, it is recommended that you put this line into all of your documents’ head section: Unicode is a set of nearly every character ever used, so you will not have to escape very many characters when writing. An even better character set is called Unicode, and is designated by the code UTF-8. Most pages that are written in any form of English will use a character set called iso-8859-1. If you use the right encoding, you can just type whatever character you need directly into the text without having to do anything more. Your charset, for short, is the range of letters, numbers and other symbols that your document will be able to use without having to encode the character with one of the entities below. Every document you create should have a character set specified for it.
0 Comments
Leave a Reply. |