<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <?php echo utf8_decode("selecciona una categoría");?>
Above two lines are used to decode the special characters properly. We use the meta tag insection of the page to decode the whole page and second line of PHP code is used to decode a specific text value. But if you use both of above in same php/html page it will not work. It may work on localhost but will not work on server.
Instead of using “utf8_decode” at every page, you can use:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
In the beginning of page, it will resolve all the issues and properly encoded values will be submitted to the server.
Webner Solutions is a Software Development company focused on developing CRM apps (Salesforce, Zoho), LMS Apps (Moodle/Totara), Websites and Mobile apps. If you need Web development or any other software development assistance please contact us at firstname.lastname@example.org