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
Since ages the script-internal function
connect_db
sets the charset of the database connection with aSET 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 functionmysqli_set_charset
instead.See therefore also the page Character sets concepts in the PHP documentation.