Jump to content

problem with unicode

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Farel0x

Farel0x

    Newbie

  • Members
  • Pip
  • 3 posts
Dear guys.
i'm georgian.
I have been working on my brother's site, he wants to make lineage2 web site which is based on Stress web 8.0 web engine.
I downloaded it, uploaded all files, installed, everything is working, but when i try to change template(for example: write headline in georgian language,make menu in georgian etc.) and i open my web site with opera, opera shows me result like this: бѓЄбѓЄбѓЄбѓЄбѓЄбѓЄбѓЄбѓЄбѓЄ
And when i open it with Google chrome it shows me well.

I write above in html document this:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
but result is the same.

If anyone help me, i'll be very gratefull.
this problem makes me furios.
I hope so, you'll help me.

P.S In this post might be grammar mistakes,sorry for my mistakes.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
What character set are you saving the file in?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Farel0x

Farel0x

    Newbie

  • Members
  • Pip
  • 3 posts
UTF-8.
----
Problem has been solved :)
I opened index.php of web engine, and i read it, at first obviously it was clean from any errors, but i noticed something.
index.php:


<?php
/**
 * STRESS WEB
 * @copyright 2008 - 2009 STRESS WEB
 * @version 8.0
 * @web http://stressweb.ru
 */
[COLOR="red"]session_start();[/COLOR]
error_reporting(E_ALL);
//error_reporting(0);
define('STRESSWEB', true);
define('ROOT_DIR', dirname(__file__));
define('INC_DIR', ROOT_DIR . '/inc');
define('MOD', 'index');
/**
 * ==============================
 * FILE including
 * ============================== 
 */
require_once INC_DIR . '/cache.php';
require_once INC_DIR . '/data/config.php';
require_once INC_DIR . '/data/config_db.php';
require_once INC_DIR . '/classes/mysql.class.php';
require_once INC_DIR . '/classes/template.class.php';
/*******************
* Change skin
*******************/
if (isset($_REQUEST["tpl_change"]))
{
    $tmppos = strrpos($_SERVER["PHP_SELF"], "/") + 1;
    $path = substr($_SERVER["PHP_SELF"], 0, $tmppos);
    setcookie("sw_usr_template", $_REQUEST["tpl_change"], time() + 31536000, $path);
    $host = $_SERVER['HTTP_HOST'] ? $_SERVER['HTTP_HOST'] : @getenv('HTTP_HOST');
    $self = $_SERVER['REQUEST_URI'] ? $_SERVER['REQUEST_URI'] : @getenv('REQUEST_URI');
    header("Location: http://" . $host . $self . "");
    exit;
}
if (isset($_COOKIE["sw_usr_template"]) && $config["site"]["template"]["change"] == '1' && file_exists(ROOT_DIR . "/templates/" . $_COOKIE["sw_usr_template"]))
{
    $this_tpl = $_COOKIE["sw_usr_template"];
}.....
After session_start(); i wrote this
<?
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
>
so,my problem has been solved :)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users