Is there any restrictions for it to show normally?
+9
A:
Sounds like an encoding problem. For special characters like that, I prefer to use HTML entities. In this case, try »
Matt Sherman
2009-08-06 04:20:58
what's aquo short for here?
Shore
2009-08-06 04:27:27
raquo: "right angle quote"
earl
2009-08-06 04:28:54
+2
A:
After my experience, a question mark usually replaces undecodable special characters when you encode your special characters with utf8, because web browsers by default decode the web page using iso-latin1. You can/should explicitely declare the encoding of your web page using the following directive:
<?xml version="1.0" encoding="UTF-8" ?>
for xhtml, or
<meta http-equiv="Content-Type" content="text/html"; charset="utf-8">
(inside the element), for HTML.
Regard this post as a supplement, because I guess that using the xml/html entities like »
or »
mentioned above are the better way to go.
chiccodoro
2009-09-07 12:39:36
Or, as the meta tag suggests, you can also use the correct HTTP `Content-type` header: `Content-Type: text/html; charset=utf-8`.
Lèse majesté
2010-08-17 12:21:38
@Lèse, sorry, did not mean to put this old thread on the front page again. I just coincidentally found a flaw in my answer and corrected that. Didn't think that might even bring in another 10 rep points :-)
chiccodoro
2010-08-17 13:20:33