Reputation: 712
I am using the Steam OpenID API to retrieve usernames. The problem is some users have names like this:
█Ỏ͖็✪3░⠀็Ỏ͖͈̞̩͎̻̫̫̜͉̠̫͕█
but when the username is inputed into the webpage this is what the username looks like:
█Ỏ͖็✪sw3🔘tâ–‘â €à¹‡á»ŽÍ–ÍˆÌžÌ©ÍŽÌ»Ì«Ì«ÌœÍ‰Ì Ì«Í•â–ˆ
I couldn't find a solution to this problem, but if someone could manage to find the solution, please link it in the answer.
Upvotes: 0
Views: 333
Reputation: 712
header("Content-type: text/html; charset=UTF-8");
Credit to https://stackoverflow.com/users/5626245/dave
Upvotes: 1
Reputation: 331
<?php
$message="!@#%&^*()%^%%$";
echo htmlentities($message);
?>
Upvotes: 0