Htmlspecialchars return a mistake value

122 views Asked by At

I'm using PHP 7.4, when I run echo htmlspecialchars("Jours Fériés", ENT_QUOTES); I get an empty string. when I run echo htmlspecialchars("Jours", ENT_QUOTES); I get "Jours" How can fix this problem ?

1

There are 1 answers

2
mourad semi On

Solved by changing encoding to "iso-8859-1" inside php.ini