1

(114 replies, posted in Programming)

+1 vote for ViM

1. ????????? ? ?????? ???????:

define('PUN_DEBUG', 1);

2. ??????????? ??????? include/search_idx.php - ??? ???? ??????? split_words, ? ??????? ????????? ?????????? ??????????? ?? ?????. ??? ?? ????? ???????? ????? ?????? ??????? ???????? "?? ???".

3. ?? ? ????????? ?????????, ???????... ? UTF ? ??????? ?????????? ???????? ?????.

One more bad thing, split_words() in search_idx.php at line 63 trashes some of UTF strings badly. The solution is:

$text = trim(preg_replace('#\s+#u', ' ', $text));

It's just adding of 'u' to regex.

Without that it behaves badly on russian word pahat'.

4

(88 replies, posted in Archive)

???? ??? ???????????...

???????? -> ?????????