I am trying to echo some special character like the “micro” symbol and the “squared” symbol however whenever I do this on the page it comes up with this symbol?
�
These are ASCII chars I am using, perhaps I need UNICODE-8?
Thanks for your time!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Based on your question specification (read: the stuff you didn’t specify) your problem is in the encoding.
If your using PHP, then add
Header("Content-Type: text/html; charset=UTF-8");to top of your code OR (even better:) to your core file (if your using some CMS type method.)So browser would understand, what encoding your using add
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />to your html/template file.Also make sure that your full mysql (if your using one) is in UTF-8 and make sure to add this to your mysql-macros class
mysql_query("SET NAMES utf8");.