Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need Help whit characters
#1
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?
Reply
#2
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
Reply
#3
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>
Reply
#4
I´m sorry, then I don´t know :S

MfG Manuel
Reply
#5
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...
Reply
#6
2nd post in this thread describes the way, just do it on all templates that have no _ in their name. Wink
Reply
#7
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
Reply
#8
But ISO-8859-1 is right.
Have you deleted all files in templates_c?
Have you cleaned the cache?

MfG Manuel
Reply
#9
Yup, done that, but the problem is still there =/
Reply
#10
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.
Reply
#11
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:

[Image: semttuloiuh.png]

At the morning the server was like this:

[Image: printgame.png]
I Think that the Index is the only place that is not affected
Reply
#12
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:

[Image: semttulotpy.png]

Is it possible to fix both problems?
Reply
#13
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 Big Grin
-Sir! Wir sind umzingelt!
-Ausgezeichnet, jetzt können wir in jeder Richtung angreifen.
Reply
#14
(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 :/
Reply




Users browsing this thread: 1 Guest(s)