I'm using htmlspecialchars
to display Greek letters correctly in my html. For that reason I have:
$array = array('sampleGreekString' => 'Ενδιαφερόμαστε για το φορτίο σας')
When I call the function like this:
htmlspecialchars('Ενδιαφερόμαστε για το φορτίο σας')
it works fine and all letters are shown correctly. But when I call it this way:
htmlspecialchars($array['sampleGreekString']);
on the screen are shown only question marks (?). How can I fix this?