HTML Encoding
| |
| The Bush Survival Guide - 250 Ways to Make It Through The NExt Four Years Without Misunderestimating the Dangers Ahead, and Other Subliminable Stategeries |
|
Links:
| |
Subjects > Computers > Internet > Web
Another Garnet Quest! Garnet solves difficult problems for you.... See the bottom of this page for how to let Garnet know if this page helped you.
For a browser to know what encoding an HTML file is written in, it must be told. If a browser isn't told, then it may guess wrong and render many characters wrong. The encoding can be communicated to the browser in two ways for HTML files:
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
Content-type: text/html; charset=UTF-8
It is best if both of these methods are used, and of course they must both agree with the actual file encoding. Often you don't have control of the HTTP header, so using the META element is the only option.
For XHTML output, there is a third avenue to convey the encoding. Because the output is XML, it should have an XML declaration, and the declaration should also contain the encoding:
<?xml version="1.0" encoding="UTF-8" ?>
If you have access to Lynx web browser, you can inspect what the server is sending in the HTTP headers with this command:
lynx -head http://testwiki.find11.com/Bulgarian_-_Other
See also How To Use Chat11 Wiki To Keep Track Of Solutions To Problems
If so, I'd like to hear from you. I spent about 3 or 4 hours tracking down a solution to this problem, so I hope this page helped you solve the problem a lot quicker than that. If you'd like to donate a few bucks via paypal, that would be nice too! For any size donation, I'll send you an Internet Guide on the topic of your choice to include on your website.
You can reach me at http://www.garnetchaney.com/contact.shtml!
- Garnet
Check out [Facts About Trees]
Search for books about:
|
Interested in Popular California Topics?