I want users to be able to post an icon/symbol (in example: ❤) in a form in HTML.
After getting back the input in PHP, the symbol still exists. Where it goes wrong is when I put in into the database, then it converts into some weird symbols. I know it is not a problem in the database, since I am able to input the icons into the database using a Minecraft Plugin. There I added basically
?useUnicode=true&characterEncoding=UTF-8
to the URI and it worked. How is this possible to do using PHP? I use the following code for the connection: $conn = new mysqli($servername, $username, $password, $dbname);
Thanks!