2011-10-24, 08:17 AM
I have this:
But accents and all that kind of words appear as "�".
This was the templat I was using before this:
I don't know what the problem is :-\
<?php
if(THIS_SCRIPT == 'index.php'){
session_start();
}
chdir('foros');
define("IN_MYBB", 1);
$filename = substr($_SERVER['SCRIPT_NAME'], -strpos(strrev($_SERVER['SCRIPT_NAME']), "/"));
define('THIS_SCRIPT', $filename);
require_once './global.php';
eval("\$welcomeblock1 = \"".$templates->get("welcomeblock")."\";");
header('Content-Type: text/html; charset=utf-8');
echo"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="es" lang="es" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
But accents and all that kind of words appear as "�".
This was the templat I was using before this:
<?php
session_start();
chdir('foros');
define("IN_MYBB", 1);
require './global.php';
eval("\$welcomeblock1 = \"".$templates->get("welcomeblock")."\";");
header('Content-Type: text/html; charset=utf-8');
echo"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
I don't know what the problem is :-\