Author Topic: UTF-8 encoding - problem with searching for keywords (Polish characters)  (Read 382 times)

0 Members and 1 Guest are viewing this topic.

Offline Szooguun

  • Newbie
  • *
  • Posts: 47
    • View Profile
UTF-8 encoding problem with searching for keywords (Polish characters)

Hello. I changed the page coding to utf-8 - everything on the page is displayed correctly. However, the problem arises when searching for keywords with Polish characters (ą, ę, ś, ć, etc.). Nothing is found then, although the keywords under the wallpaper are displayed correctly.

In the file includes / db_mysql.php I added:
mysql_query("SET CHARSET utf8");
mysql_query("SET NAMES `utf8` COLLATE `utf8_polish_ci`");


in the file lang / polish / main.php I changed the coding:
$lang['charset'] = "charset=UTF-8";

Html files encoded in UTF-8 (without BOM)

Please help.