Jump to content

german charachter set on connection PHP -> DB


Recommended Posts

i'm translating product description in german writing direcly on DB via PHP

when i use some character as "ü", such a character is not written and the string is truncated.

 

if i write the same character on the Back Office, everithing is fine

the charachter set on mysql is "utf8mb4_general_ci"

so I tried to set the same character set on the connection

PHP -> DB with

mysqli_set_charset($link,"utf8mb4_general_ci");

 

But if i check the the actual charachter set with

mysqli_character_set_name($link)

it returns "utf8mb4"

 

what is going wrong?

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...