Difference between revisions of "Talk:CharsetEncoding"

From MPDLMediaWiki
Jump to navigation Jump to search
m
m
Line 20: Line 20:


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

Revision as of 09:37, 27 October 2009

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;
       }