My code looks like this:
<?php
echo "בְּרֵאשִׁית, בָּרָא אֱלֹהִים, אֵת הַשָּׁמַיִם, וְאֵת הָאָרֶץ.";
The output in the webbrowser is:
בְּרֵ×ש×ִית, ×‘Ö¼Ö¸×¨Ö¸× ×ֱלֹהִי×, ×ֵת הַשּ×ָמַיִ×, וְ×ֵת ×”Ö¸×ָרֶץ.
Which steps should I take to make the browser to show:
בְּרֵאשִׁית, בָּרָא אֱלֹהִים, אֵת הַשָּׁמַיִם, וְאֵת הָאָרֶץ.
You need to tell the browser that your page is utf8-encoded. This is done by setting the Content-type
-header:
header('Content-type: text/plain; charset=utf-8');
Use text/html
instead of text/plain
if you want to print an html page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With