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?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 bug reports → 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?
I will look into it.
Rickard
v 1.2.5 , still same error...
I know. It's on my todo list. Very difficult for me to test though
oh... they forgot to TURN it ON in Administration...
all works fine
So there's no problem?
Censor words => Yes . Problem is present.
Site / DB encoding = windows-1251/cp1251.
OK. Does using a different browser affect the results?
Yes. I test it in IE 6 Sp1 and Opera 7.24 u2.
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)
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.
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) .
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?
PunBB Forums → PunBB 1.2 bug reports → Censoring can't recognize russian words.
Powered by PunBB, supported by Informer Technologies, Inc.