Issues of UTF-8 Encode Keyword

Author - Webner
<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 in section 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 webdevelopment@webners.com

Webner Solutions is a Software Development company focused on developing Insurance Agency Management Systems, Learning Management Systems and Salesforce apps. Contact us at dev@webners.com for your Insurance, eLearning and Salesforce applications.

Leave a Reply

Your email address will not be published. Required fields are marked *