TWLan Forum

Full Version: Need Help whit characters
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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
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>
I´m sorry, then I don´t know :S

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

MfG Manuel
Yup, done that, but the problem is still there =/
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.
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
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?
that with chrome not, but that in the left corner is from an plugin, i forgot which
(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 :/