1

Topic: Censoring can't recognize russian words.

I'm using PunBB 1.2.2.  Censoring can't recognize russian words, but with english it works well? What is wrong?

Re: Censoring can't recognize russian words.

I will look into it.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Censoring can't recognize russian words.

Rickard
v 1.2.5 ,  still same error...

Re: Censoring can't recognize russian words.

I know. It's on my todo list. Very difficult for me to test though smile

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Censoring can't recognize russian words.

oh... they forgot to TURN it ON in Administration...
all works fine

Re: Censoring can't recognize russian words.

So there's no problem? smile

"Programming is like sex: one mistake and you have to support it for the rest of your life."

7

Re: Censoring can't recognize russian words.

Censor words => Yes . Problem is present.

Site / DB encoding = windows-1251/cp1251.

Re: Censoring can't recognize russian words.

OK. Does using a different browser affect the results?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

9

Re: Censoring can't recognize russian words.

Yes. I test it in IE 6 Sp1 and Opera 7.24 u2.

10 (edited by Aleksei 2005-04-17 21:48)

Re: Censoring can't recognize russian words.

hm.. it`s going more interesting..
I use latin1_general_ci codepage for my mysql database and win-1251 for pages
and all works fine... In Firefox 1.0.3 and IE 6 SP1

but if I change codepage of database to any of win-1251 it`s not working

that`s why I don`t spot the problem, many people in russian use win-1251 codepage for both pages and databases

my software: Apache/2.0.53 (Win32) PHP/5.0.3 MySQL 4.1.10 (UNICODE)

11

Re: Censoring can't recognize russian words.

I use:

character set cp1251 in MySQL

Apache 2.0.53 (FreeBSD) PHP 4.11 Mysql 4.0.24

There are no problems with version 1.1.5.

12 (edited by adsh 2005-04-18 17:19)

Re: Censoring can't recognize russian words.

I found bug. I uncomment:

// Determine what locale to use
switch (PHP_OS)

{
        case 'WINNT':
        case 'WIN32':
                $locale = 'russian';
                break;

        case 'FreeBSD':
        case 'NetBSD':
        case 'OpenBSD':
                $locale = 'ru_RU.CP1251';
                break;

        default:
                $locale = 'ru_RU';
                break;
}

// Attempt to set the locale
setlocale(LC_CTYPE, $locale);

In russian pack for version 1.2.xx (Russian_lang_pack_for_PunBB_1.2.2_cp1251.tar.gz) smile.

There is solution for this problem to:

http://punbb.org/forums/viewtopic.php?pid=38331


Rickard - can you explaine the difference between cp1251 encoding for MySQL and  "$locale = 'ru_RU.CP1251'" above?