cidy.long cidy.long - 25 days ago 7
HTML Question

Copyright symbol "&#x00A9" is invalid?

I had a simple footer part html in my application to declare my copy right and right reservation. HTML code as:

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

<html>
<body>
<p>Copyright &#x00A9 from 2013 of Longz Australia<img src="<%=request.getContextPath() %>/resources/img/g8626.png">. Tweed Head Self Storage &trade; and its logo/signs <img src="<%=request.getContextPath() %>/resources/img/g3039.png"> were registered in Australia. All rights reserved.</p>
</body>
</html>


Eclipse keep telling me:

Invalid character used in text string (Copyright &#x00A9 from 2013 of Longz
Australia).


I tried to replace it with
&copy
, it is the same. But trade mark symbol "&trade" work well in same para. Seems Eclipse don't like to see &copy?

Browser rend it correctly. Only Eclipse keep complaint.

This is not a big issue, but it is annoy me.

Answer

Try &#169; but &copy; should work too

Comments