I’m writing a web app using php.
The main file (index.php) has some Hebrew chars in it and when I load it they show as “?”.
The encoding for the PHP and the HTML files is UTF-8.
When I change the index.php extension to HTML, the Hebrew chars are shown well.
I tried to put this line in the code:
<?php
header('Content-type: text/html; charset=UTF-8')
?>
but it didn’t help.
I still want to use the file as PHP. How can I make the Hebrew chars to show?
Things to step through:
isutf8or similar).metaelement in the head. (All of these should be set to UTF-8)Ask if you need help with any of those.