My-Little-Forum / mylittleforum

A simple PHP and MySQL based internet forum that displays the messages in classical threaded view (tree structure)
GNU General Public License v3.0
118 stars 47 forks source link

Setting the charset of the MySQL connection with mysqli_set_charset #693

Closed auge8472 closed 4 months ago

auge8472 commented 5 months ago

Since ages the script-internal function connect_db sets the charset of the database connection with a SET NAMES query as seen in the linked version from MLF2 version 20220803.1. The PHP documentation recommends to use the intended function of the module, in our case the function mysqli_set_charset instead.

See therefore also the page Character sets concepts in the PHP documentation.

auge8472 commented 4 months ago

This was fixed with #694