My html php page does not display utf-8 characters

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
dqninh
New php-forum User
New php-forum User
Posts: 5
Joined: Mon May 24, 2021 8:38 am

Sat Jun 05, 2021 7:50 am

My php/html page does not display utf-8 characters correctly. Any suggestion?

Thanks
utf8 does not display.jpg
utf8 does not display.jpg (103.24 KiB) Viewed 295 times
simonbrahan
php-forum Fan User
php-forum Fan User
Posts: 137
Joined: Mon Jun 08, 2020 2:00 am
Contact:

Sun Jun 06, 2021 4:29 am

It may be that your web page is not being served as UTF8. Try adding this line immediately after your opening <HEAD> tag:

Code: Select all

<head>
<meta charset="utf-8"/><!-- add this line -->
Post Reply