File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes how to display special characters? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "how to display special characters?" Watch "how to display special characters?" New topic

how to display special characters?

Styn Cremers

Joined: Nov 02, 2009
Posts: 2

I've got a problem with displaying some special characters....
I need to display to unicode/utf-8 character “ and ”.
You can find the codes here: the UCS-2 Dec codes are 147 and 148.

But when i see them in firefox, i also get a “...

any idea what i'm doing wrong?
Akaine Harga
Ranch Hand

Joined: Nov 03, 2009
Posts: 97

Had the same problem. When I put escaped chars or utf codes the page refused to render and threw exception. So I just use the chars directly with charset declared in the template header and all works just fine.

Wanna install linux on a vacuum cleaner. Could anyone tell me which distro sucks better?
willCodeForFood("Java,PHP,C#,XML,VBS,XHTML,CSS,JavaScript,SQL"); //always looking for job opportunities in AU/NZ/US/CA/Europe :P
Srini Mutpur

Joined: Mar 29, 2008
Posts: 24

All the special characters html numbers are available at

for >: >
for " : "


SCJP 1.5
I agree. Here's the link:
subject: how to display special characters?
jQuery in Action, 3rd edition