Sometimes this happens regional language stored in DB properly, but when rendered on UI it shows the question mark or special character even after the HTML character set is added. Solution for this is add the MySQL character set.
mysql_query (" set character_set_results='utf8' ");
// Add this before executing the sql query. OR in your connection file so it will be used through-out your application. For full reference, click here.
//Adding HTML character set for reference purpose. (Read more at, W3Schools)
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta charset="utf-8">
Comments
Post a Comment