On Tue, 2008-03-18 at 12:44 +0100, Diego Ruotolo wrote:
I think the problem is an incorrect DTD. If I see HTML
source the
header is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
To support UTF-8, it should be:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Does anyone know how to change it?
For the albatross skin you can change it by modifying the velocity
template htmlheader.vm i.e. the file ./skins/albatross/htmlheader.vm
relative to your xwiki webapp root directory -
$TOMCAT_DIR/webapps/xwiki/ .
Anyway I don't understand how changing the doctype (as UTF-8 is a
perfectly legal encoding for XHTML documents) would affect the encoding,
which should get specified in the line before (always referring to
albatross skin):
<?xml version="1.0" encoding="$xwiki.encoding" ?>
--
Marco
=====
"We know nothing
— that is the first point.
Therefore we should be very modest
— that is the second.
That we should not claim to know when we do not know
— that is the third."
Karl R. Popper