Salve a tutti!
Se visualizzo il file PROVA.HTML così fatto:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="it" xml:lang="it" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
Questa è una prova</p></body>
</html>
...ottendo la visualizzazione della "è" corretta.
Se invece utilizzo smarty e quindi utilizzo un file php così fatto:
<?php
// caricamento delle librerie di Smarty
require('./smarty/Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = './smarty/site/templates';
$smarty->compile_dir = './smarty/site/templates_c';
$smarty->config_dir = './smarty/site/configs';
$smarty->cache_dir = './smarty/site/cache';
$smarty->display('prova.tpl');
?>
...che richiama un file prova.tpl così fatto:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="it" xml:lang="it" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
Questa è una prova</p></body>
</html>
...ottendo la visualizzazione della "è" NON corretta. Al suo posto ho un "?"
Che senso ha? Sapete suggerirmi il possibile problema?
Grazie a chi mi vorrà aiutare!