I have a PHP object displaying values as below when I use var_dump($obj):
object() (1) { ["name"]=> string(3) "Lê" ... }
But when I print $obj->name, the browser displays "Lê" instead.
My browser is displaying UTF-8. HTML charset is also set to utf-8.
I tried with some functions but I didn't solve this.
could you please help me to solve this issue? Thanks.
EDIT:
I have already had all checked items as below:
header('Content-Type: text/html; charset=utf-8');
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- My browser is displaying UTF-8
- The $obj is get from db table which set "character set" to utf-8 and "collation" to utf8_general_ci
- PHP file is encoded to UTF-8