Привет народ. Я не знаю русский, и только что я могу написать с помощью Google-а.
English:
Hi friends. I'm from Bulgaria and I think we have the same problem when we talk about cyrillic chars.
I'm using IPB 3.1.4 (english nulled version (for testing purposes)) and I have problem with uppercased char "Р" only in titles (in posts everything is ok).
Well, my database is utf8_general_ci.
In conf_global.php I have
$INFO['sql_charset'] = 'utf8';
In ACP charset is "UTF-8"
but the look in this way:
If I edit those two files:
classDbMysqliClient.php
//-----------------------------------------
// If there's a charset set, run it
//-----------------------------------------
if( $this->obj['sql_charset'] )
{
$this->query( "SET NAMES '{$this->obj['sql_charset']}'" );
$this->query( "SET CHARACTER SET '{$this->obj['sql_charset']}'");
$this->query( "SET character_set_connection = " .$this->obj['sql_charset']);
$res = mysqli_query($this->connection_id, "SHOW CHARSET LIKE '" . $this->obj['sql_charset'] . "'" );
if($charset = mysqli_fetch_row($res)) $this->query( "SET collation_connection = " . $charset[2] );
}
parent::connect();
return TRUE;
and classDbMysqlClient.php
//-----------------------------------------
// If there's a charset set, run it
//-----------------------------------------
if( $this->obj['sql_charset'] )
{
$this->query( "SET NAMES '{$this->obj['sql_charset']}'" );
$this->query( "SET CHARACTER SET '{$this->obj['sql_charset']}'");
$this->query( "SET character_set_connection = " .$this->obj['sql_charset']);
$res = mysql_query($this->connection_id, "SHOW CHARSET LIKE '" . $this->obj['sql_charset'] . "'" );
if($charset = mysqli_fetch_row($res)) $this->query( "SET collation_connection = " . $charset[2] );
}
return TRUE;
it looks like this:
Where I'm wrong ?
I think i'm using uf8 everywhere...
But this char is the problem only in the titles:
and
I'm sorry for that i use english, but I really don't understand russian, but if sould to translate it to russian, I'll do it, but I don't think will be better then my bad english, because I'll use google translate... But if is necessary I'll do it, because nobody can help me, but I think you can do !!!
Находясь на нашем сайте, вы соглашаетесь на использование файлов cookie, а также с нашим положением о конфиденциальности Политика конфиденциальности и пользовательским соглашением Условия использования.
Вопрос
beBoss
Привет народ. Я не знаю русский, и только что я могу написать с помощью Google-а.
English:
Hi friends. I'm from Bulgaria and I think we have the same problem when we talk about cyrillic chars.
I'm using IPB 3.1.4 (english nulled version (for testing purposes)) and I have problem with uppercased char "Р" only in titles (in posts everything is ok).
Well, my database is utf8_general_ci.
In conf_global.php I have
In ACP charset is "UTF-8"
but the look in this way:
If I edit those two files:
classDbMysqliClient.php
and classDbMysqlClient.php
it looks like this:
Where I'm wrong ?
I think i'm using uf8 everywhere...
But this char is the problem only in the titles:
and
I'm sorry for that i use english, but I really don't understand russian, but if sould to translate it to russian, I'll do it, but I don't think will be better then my bad english, because I'll use google translate... But if is necessary I'll do it, because nobody can help me, but I think you can do !!!
Ссылка на комментарий
Поделиться на других сайтах
3 ответа на этот вопрос
Рекомендуемые сообщения
Присоединиться к обсуждению
Вы можете ответить сейчас, а зарегистрироваться позже. Если у вас уже есть аккаунт, войдите, чтобы ответить от своего имени.