|
|
Declaring the Language Encoding on Websites Macintosh and Windows |
If you create a Web site, it is good practice to declare the encoding. Properly encoded Web pages declare the encoding to a browser through a meta tag in the header. Without this tag, a browser may not know to switch to the proper encoding and characters may be displayed as gibberish.
In most cases, you should use UTF-8 encoding for non-roman characters.
Copy and paste the following code into your HTML script
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
For more information on Web encodings, go to: http://tlt.its.psu.edu/suggestions/international/web/tips/declare.html.
If the website is non-Roman and no encoding is declared with the special meta tag, then you might see Roman alphabet gibberish instead of the foreign script. Follow the instructions below to fix the problem.
For more information on tweaking browsers, go to: http://tlt.its.psu.edu/suggestions/international/web/encoding/10messup.html.