-1

I have words like this in my fields:

Überblick

When I save them to the database it becomes:

Ãberblick

I have tried:

htmlspecialchars
$db->escape
mysql_real_escape_string

What is the correct solution to saving this to a mysql database using PHP?

user1794021
  • 373
  • 3
  • 5
  • 9

1 Answers1

-1

Do the following, after initialising the connection: mysqli_set_charset("utf8");

Husman
  • 6,819
  • 9
  • 29
  • 47