To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

English version - [Other] localhost and problem with utf-8

evilmc - 29-08-2010, 17:51
Temat postu: [Other] localhost and problem with utf-8
I have already had a similar problem, but this time it seems a different problem. I switched my forum in the local network on your computer, but now all the posts on the forum look like this:


lang_main.php
Kod:
setlocale(LC_ALL, 'sr_YU.ISO8859-5', 'sr_YU.ISO8859-2', 'sr_YU@cyrillic.UTF-8', 'sr', 'sr_CS', 'sr_CS.UTF-8', 'sr_YU.UTF-8');
$lang['ENCODING'] = 'UTF-8';
$lang['DIRECTION'] = 'ltr';
$lang['DATE_FORMAT'] = 'd M Y'; // This should be changed to the default date format for your language, php date() format


And all lang files set to UTF-8 encoding. Database table for SQL is: utf8_unicode_ci.

What could be the problem?

Bucu - 29-08-2010, 19:00

At first, give me url. I need to view your check_files.php (if reading is enabled to admin only, change it)
evilmc - 29-08-2010, 19:17

my forum in the local network on my computer(localhost = wamp server)
Bucu - 29-08-2010, 19:38

evilmc,

Is your db/mysql.php modified?

And check encoding in source code (meta tag)

evilmc - 29-08-2010, 21:19

Bucu napisał/a:
Is your db/mysql.php modified?

I do not understand you.
Bucu napisał/a:
And check encoding in source code (meta tag)

Could you explain me where should I check?

Bucu - 29-08-2010, 21:31

evilmc,

view in your browser check_files.php

example:
Kod:
www.serbianunderground.com/forum/check_files.php


and if file db/mysql.php or db/mysql4.php is listed end shown as modified, overwrite this two files with clean copies from package.

Cytat:

Could you explain me where should I check?-


Click view source using RMB in your browser

And find this line:
Kod:
 <meta http-equiv="Content-Type" content="text/html; charset

evilmc - 29-08-2010, 21:39

Cytat:
Click view source using RMB in your browser

And find this line:
Code:
<meta http-equiv="Content-Type" content="text/html; charset

Okey, i find this meta:
Kod:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">


Bucu napisał/a:
check_files.php

Bucu - 29-08-2010, 21:57

Your database is in utf-8 but some characters arent i think.

Is that characters shown on your screen, are the same in database? I think they dont, you need to convert those special characters then load sql file to new db.



Powered by phpBB modified by Przemo © 2003 phpBB Group