| ... | ... |
@@ -51,7 +51,7 @@ Setting the old-mode setting as blank overrides the UTF8_IS_UTF8MB3 binding to t |
| 51 | 51 |
|
| 52 | 52 |
Reference: https://mariadb.com/docs/server/server-management/variables-and-modes/old_mode |
| 53 | 53 |
|
| 54 |
-Alternateively, in includes/mysqli_functions, you may comment the line **mysqli_query($mysqli_access, "SET NAMES UTF8;");** and uncomment the line **mysqli_query($mysqli_access, "SET NAMES UTF8MB4;");** if you are not able to configure the database configuration. |
|
| 54 |
+Alternateively, in includes/mysqli_functions, you may comment the line **mysqli_query($mysqli_access, "SET NAMES UTF8;");** and uncomment the line **mysqli_query($mysqli_access, "SET NAMES UTF8MB4;");** if you are not able to configure the database configuration. It is recommended to uncomment the line **mysqli_query($mysqli_access, "SET collation_connection = utf8mb4_bin;");** if the UTF8MB4 line is used as well. |
|
| 55 | 55 |
|
| 56 | 56 |
|
| 57 | 57 |
### Installation and Usage |
| ... | ... |
@@ -24,6 +24,10 @@ function dbconnect($dbhost, $dbuser, $dbpass, $dbname ) {
|
| 24 | 24 |
// comment UTF8 and uncomment UTF8MB4 if needed - especially when converted to Mod |
| 25 | 25 |
//mysqli_query($mysqli_access, "SET NAMES UTF8MB4;"); |
| 26 | 26 |
mysqli_query($mysqli_access, "SET NAMES UTF8;"); |
| 27 |
+ |
|
| 28 |
+ // if SET NAMES UTF8MB4 is uncommented, uncomment this along with UTF8MB4, especially when converted to Mod |
|
| 29 |
+ //mysqli_query($mysqli_access, "SET collation_connection = utf8mb4_bin;"); |
|
| 30 |
+ |
|
| 27 | 31 |
return $mysqli_access; |
| 28 | 32 |
} |
| 29 | 33 |
|