Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UTF-8 and German characters?

I have problem with German characters on my web site,

in html/php part of website i have this code to set utf-8:

<meta charset="utf-8">

in mysql, i have this code to set utf-8

SET CHARSET 'utf8';
  1. Here is some word on German: Gemäß

  2. Here is how that word looks in mysql table:

    Gem&Atilde;&curren;&Atilde;Ÿ

  3. Here is how that word is shown on the site: Gemäß

What is a problem? Thanks.

like image 539
user1814358 Avatar asked May 22 '13 12:05

user1814358


Video Answer


1 Answers

I was using this code to get title:

$title = mysql_real_escape_string(htmlentities($_POST['title']));

I just override that to

$title = $_POST['title'];
like image 183
user1814358 Avatar answered Sep 21 '22 08:09

user1814358