⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

mysqli_get_charset()

The mysqli_get_charset() function returns an object containing the properties of the current character set (charset). This helps us verify whether the database correctly supports our characters, such as č, š, and ž.

EXAMPLE
RESULT
The result will be displayed here...

Practical use: Instead of just guessing which encoding the connection uses, this function gives us a detailed insight into the server settings. Below, take a look at the object output using var_dump():