Перейти к контенту
  • 0

IPB 3.1.4 (english version) проблем


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

$INFO['sql_charset'] = 'utf8';

In ACP charset is "UTF-8"

but the look in this way:

post-103684-0-71970700-1300390149_thumb.png

 

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:

post-103684-0-51887900-1300390205_thumb.png

 

Where I'm wrong ? :(

I think i'm using uf8 everywhere...

But this char is the problem only in the titles:

post-103684-0-08735000-1300390457_thumb.png

and

post-103684-0-19754600-1300390490_thumb.png

 

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 !!!

Ссылка на комментарий
Поделиться на других сайтах

Рекомендуемые сообщения

Присоединиться к обсуждению

Вы можете ответить сейчас, а зарегистрироваться позже. Если у вас уже есть аккаунт, войдите, чтобы ответить от своего имени.

Гость
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Ответить на вопрос...

×   Вы вставили отформатированный текст.   Удалить форматирование

  Допустимо не более 75 смайлов.

×   Ваша ссылка была автоматически заменена на медиа-контент.   Отображать как ссылку

×   Ваши публикации восстановлены.   Очистить редактор

×   Вы не можете вставить изображения напрямую. Загрузите или вставьте изображения по ссылке.

Зарузка...
×
×
  • Создать...

Важная информация

Находясь на нашем сайте, вы соглашаетесь на использование файлов cookie, а также с нашим положением о конфиденциальности Политика конфиденциальности и пользовательским соглашением Условия использования.