Difference between revisions of "Talk:CharsetEncoding"
Jump to navigation
Jump to search
m |
m |
||
Line 15: | Line 15: | ||
</code> | </code> | ||
=== Display of Characters in | === Display of Characters in Different Browsers === | ||
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): | 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): | ||
<code> | <code> | ||
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; | ||
} | } | ||
Line 30: | Line 30: | ||
} | } | ||
</code> | </code> | ||
These fonts are only relevant for the display of latin characters (e.g. Westlich (ISO-8859-1). |
Revision as of 09:51, 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;
}
These fonts are only relevant for the display of latin characters (e.g. Westlich (ISO-8859-1).