views:

168

answers:

3

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
what's aquo short for here?
Shore
raquo: "right angle quote"
earl
+1  A: 

You can also use »

IkoTikashi
+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 &raquo; or &#187; mentioned above are the better way to go.

chiccodoro
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é
@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