4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Szooguun on October 08, 2018, 08:39:06 PM

Title: UTF-8 encoding - problem with searching for keywords (Polish characters)
Post by: Szooguun on October 08, 2018, 08:39:06 PM
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.