How can I make htmlentities to work with cyrillic symbols.
Now, when I try input some cyrillic: “Тест” it returns “Теє
My code:
$var = htmlentities($var);
Encoding: utf-8.
Thanks!
How can I make htmlentities to work with cyrillic symbols. Now, when I try
Share
In order to bring closure to this question –
This is not necessary;
htmlspecialchars()will convert all special characters necessary to prevent HTML from being shown.