CODE
<?php
if (stristr($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml')) {
header('Content-type: application/xhtml+xml; charset=iso-8859-1');
echo '<?xml version="1.0" encoding="iso-8859-1" ?>'."\n";
} else {
header('Content-type: text/html; charset=iso-8859-1');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
if (stristr($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml')) {
header('Content-type: application/xhtml+xml; charset=iso-8859-1');
echo '<?xml version="1.0" encoding="iso-8859-1" ?>'."\n";
} else {
header('Content-type: text/html; charset=iso-8859-1');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
Sous Mozilla & Cie, IE et Konqueror pas de soucis ... Par contre sous Opéra je n'ai plus aucun accents ! Plus exactement, je n'ai plus les accents codés en html, par exemple les é ne s'affichent plus.
Si j'enlève l'echo du tag <?xml ... ?> je retrouve mes accents
Quelqu'un a déjà rencontré le soucis ?
Voyez vous une solution ?