I have an HTML form as follows <form action="upload.php" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
One of my inputs is a text input, which is supposed to handle characters such as •
. I want to handle this by translating it to some sort of html entity, but php's htmlentities
always returns an empty string. I can't just remove characters like this because I need to translate them back from a remote application in the future.
Does anyone have any suggestions? I've tried similar questions such as Handling UTF characters in html form submission with no luck