When an admin clicks on the link, that leads him to the administrator's panel, it goes to index.php?act=ap. Well, that's great. However, when in the panel, I can't see special characters (ā, ē, ī, ū, š etc.) even though the main page has the encoding set and works perfectly.
I have it like this:
$action = $_GET['act'];
...
} elseif($action == "ap") {
require("lib/inc.ap.php");
}
But the forum, which is also require()-ed, displays everything correctly. The same problem is with another page, which is used for opening popups (I think my system is complicated a bit, but as long as I don't get stuck in it, it's OK), which looks like this:<?php
...
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[url="http://www.w3.org/TR/html4/loose.dtd"]http://www.w3.org/TR/html4/loose.dtd[/url]">
<html>
<head>
<title>Interneta Futbola Līga</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link type="text/css" rel="stylesheet" href="req.style.css">
<script type="text/javascript" src="req.func.js" ></script>
</head>
<body>
<div>
<?php
$action = $_GET['act'];
if($action == "help") {
require("inc.help.php");
}
?>
...
Well, it's not completed yet, but either way, the <head> is set up exactly as the index.php is. I have no idea why it does not use the correct encoding. Firefox is using UTF-8 encoding all the time.Also, I thought this is the best forum to post it in as I use PHP scripts for this and so on.
Any ideas?
Thanks in advance
Edited by Edmachine, 04 January 2009 - 03:55 PM.
