Posts: 49
Threads: 10
Joined: Jul 2010
Reputation:
0
Hi, I'm from Portugal, and in my country we use characters like this -> ´`~^ <-(Á, È, Ã, Ô, for example).
The problem is that when I try to use these characters appear this character �...
For example: I try to write "Página" but this character � replaces this character "á" and this what appear "P�gina".
Can someone help me fixing this problem?
Posts: 3'164
Threads: 47
Joined: Dec 2008
Reputation:
205
Open game.tpl and search for
Code: <meta http-equiv="content-type" content="text/html; charset=UTF-8">
and replace it with
Code: <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
MfG Manuel
Posts: 49
Threads: 10
Joined: Jul 2010
Reputation:
0
(This post was last modified: 23.06.2011, 02:53 by ThePaparranas.)
23.06.2011, 02:19
Thanks, but that only works in the game...
In the Admin Panel the problem is still there =/
This is the index.tpl of my admin Panel:
Quote:<?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>
<title>{$lang->grab("admin_index_login", "administration")} {$lang->grab("admin_index_login", "tw")}</title>
<link rel="stylesheet" type="text/css" href="../stamm.css" />
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<script src="../script.js?1159978916" type="text/javascript"></script>
</head>
<body style="margin-top:6px;">
<table cellspacing="0" width="100%"><tr><td width="250" valign="top">
<table class="main" width="100%"><tr><td>
<tr>
<td>
<table class="menueadmin" width="100%">
<tr><th>{$lang->grab("admin_index", "main_functions")}</th></tr>
<tr><td><a href="index.php?screen=startpage">{$lang->grab("admin_index", "startpage")}</a></td></tr>
<tr><td><a href="index.php?screen=refugee_camp">{$lang->grab("admin_index", "refugee_camp")}</a></td></tr>
<tr><td><a href="index.php?screen=mail">{$lang->grab("admin_index", "mail")}</a></td></tr>
<tr><td><a href="index.php?screen=start_buildings">{$lang->grab("admin_index", "start_buildings")}</a></td></tr>
<tr><td><a href="index.php?screen=reset">{$lang->grab("admin_index", "reset")}</a></td></tr>
<tr><td><a href="index.php?screen=save_round">{$lang->grab("admin_index", "save_round")}</a></td></tr>
<tr><td><a href="index.php?screen=debugger">{$lang->grab("admin_index", "debugger")}</a></td></tr>
<tr><td><a href="index.php?screen=logs">{$lang->grab("admin_index", "logs")}</a></td></tr>
<tr><td><a href="index.php?action=logout">{$lang->grab("admin_index", "logout")}</a></td></tr>
</table>
{if count($extern_menue)!=0}
<table class="menueadmin" width="100%">
<tr><th>{$lang->grab("admin_index", "extern")}</th></tr>
{foreach from=$extern_menue item=link key=name}
<tr><td><a href="index.php?screen={$link}">{$name}</a></td></tr>
{/foreach}
</table>
{/if}
</td></tr></table>
</td><td width="*" valign="top">
<table class="main" width="100%">
<tr>
<td style="padding:2px;">
{if in_array($screen,$allow_screens)}
{include file="index_$screen.tpl" title=foo}
{/if}
<p align="right" style="font-size: 7pt; margin-top:0px; margin-bottom:0px">{$lang->grab("admin_index", "generated")} {$load_msec}ms
{$lang->grab("admin_index", "server_time")}: <span id="serverTime">{$servertime}</span></p>
</td>
</tr>
</table>
</td></tr></table>
<script type="text/javascript">startTimer();</script>
</body>
</html>
Posts: 3'164
Threads: 47
Joined: Dec 2008
Reputation:
205
I´m sorry, then I don´t know :S
MfG Manuel
Posts: 1'611
Threads: 14
Joined: Feb 2011
Reputation:
52
which version you youse? All in One 1.8?
Schildkröte: "nichts ist langsamer als ich!"
Schnecke: "ich bin ganz sicher langsamer!"
Und dann kam der Internet Explorer...
Posts: 2'492
Threads: 43
Joined: Mar 2010
Reputation:
87
2nd post in this thread describes the way, just do it on all templates that have no _ in their name.
Posts: 49
Threads: 10
Joined: Jul 2010
Reputation:
0
When I first go to localhost the characters are fine. The character � only starts appearing when I edit a file...
That way I can't translate my DSLAN :/
Molt, they already were ISO-8859-1 when I downloaded the Dslan
Posts: 3'164
Threads: 47
Joined: Dec 2008
Reputation:
205
But ISO-8859-1 is right.
Have you deleted all files in templates_c?
Have you cleaned the cache?
MfG Manuel
Posts: 49
Threads: 10
Joined: Jul 2010
Reputation:
0
Yup, done that, but the problem is still there =/
Posts: 2'492
Threads: 43
Joined: Mar 2010
Reputation:
87
I'm not 100% sure, but I think that's because of the Windows character encoding (Windows Latin blablabla). Try different character encodings, maybe Utf-8 or ASCII may work.
Posts: 49
Threads: 10
Joined: Jul 2010
Reputation:
0
(This post was last modified: 25.06.2011, 17:23 by ThePaparranas.)
25.06.2011, 17:17
I don't think that's the problem...
This morning it was fine, but then I've just edited config.php to change the speed from "9000" to "2" and here's the result:
At the morning the server was like this:
I Think that the Index is the only place that is not affected
Posts: 49
Threads: 10
Joined: Jul 2010
Reputation:
0
Look, I just find out that this problem only happens when I use the Opera browser.
But when I use Mozzila Firefox the character � doesn't appear...
But there's a problem.
Look at the top:
Is it possible to fix both problems?
Posts: 1'042
Threads: 11
Joined: Oct 2010
Reputation:
19
that with chrome not, but that in the left corner is from an plugin, i forgot which
Ein missglückter Versuch eines Saltos von einem Pferd
-Sir! Wir sind umzingelt!
-Ausgezeichnet, jetzt können wir in jeder Richtung angreifen.
Posts: 49
Threads: 10
Joined: Jul 2010
Reputation:
0
(26.06.2011, 16:59)lolli1 Wrote: that with chrome not, but that in the left corner is from an plugin, i forgot which
Chrome has the same problem :/
|