Talk:CharsetEncoding

From MPDLMediaWiki
Revision as of 11:34, 27 October 2009 by Rkiefl (talk | contribs) (→‎Display of Characters in Different Browsers)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

HTML[edit]

Currently the charset encoding is handed over in HTTP header:

      <jsp:directive.page pageEncoding="UTF-8" />

Some pages (Login Page) come with encoding handed over in the html head:

     <head>
       <title>eSciDoc - Login page</title>
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
     </head>

Display of Characters in Different Browsers[edit]

Although the page comes with proper encoding the browser needs to have a font witch contains the characters needed to be displayed. Fonts are maintained by the operating system. They can be requested via CSS (appearance.css):

       body, label, input, textarea, select, button, input.numberLabel, h2, h3, h6, a {
       font-family: Trebuchet, "Trebuchet MS", sans-serif;
       }
       input[type=text], textarea {
       font-family : Courier, "Courier New", serif;
       }
       h1, h4, h5 {
       font-family: "Myriad Pro Condensed", "Arial Narrow", sans-serif;
       }

These fonts are relevant for the display of latin characters (e.g. Westlich (ISO-8859-1). If e.g. Japanese characters need to be displayed under Windows/IE the following has to be checked in your browser:

Are any fonts available, covering Japanese characters? (Windows XP/Internet Exporer 6,7)

See "Extras/Internetoptionen/Schriftarten"; in the dropdown you can choose "Japanischer Stamm". If you choose this entry you'll see in the left box below which fonts support Japanese. If there is one, please select it and you'll see an example. As long as there is no font available in this box you'll never be able to see Japanese characters.

If the browser encounters a character it will ignore the CSS definitions and falls back to the font which is able to display the character.