-1

This is a part of my code:

$content = ' ';
$content .= '<meta http-equiv="content-type" content="text/html;charset=UTF-8"/></meta>
        <link rel="stylesheet" href="" type="text/css" media="screen" />
<div class="all_block">';

Don't work UTF-8 but it is set I don't understand where is my problem This is an example of text: 'ja?i ku?ol har? lerp�' Help me please!

user3348229
  • 27
  • 1
  • 7

1 Answers1

0

enter image description hereYou have to set content type header in php.

header('Content-Type: text/html; charset=utf-8');
$content = ' ';
$content .= '<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
    <link rel="stylesheet" href="" type="text/css" media="screen" />';

And check if the correct encoding is visible in the response header.

Sorter
  • 9,704
  • 6
  • 64
  • 74