why don't you manually write it to your page and then just have the variable 
string or db value returned to the left of it within the jsp/servlet?

Is that not an option?

-----Original Message-----
From: Ronald Klop [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 6:45 AM
To: Tomcat Users List
Cc: David Delbecq
Subject: Re: getting "?" instead of "¢"


On Mon Jul 17 12:16:00 CEST 2006 Tomcat Users List <users@tomcat.apache.org> 
wrote:
> This is not a matter of saving the jsp/html file on server with the good 
> charset, this is a matter of using the correct entity reference (&cent;) 
> which is supposed to be displayable by any html 2.0 compliant browser.
 There are more possibilities for the same thing. In the original question 
there is no mention about where the character is coming from. If it is 
something an user submits in a form and is stored in the database and then 
displayed in another webpage you can not asume the user to type &cent;.

Ronald.
>  Ronald Klop wrote:
> > On Mon Jul 17 08:55:56 CEST 2006 Tomcat Users List 
> > <users@tomcat.apache.org> wrote:
> >> Hi All,
> >>
> >> I need some help from you. I need to display Cent(¢) symbol on 
> >> browser. I am
> >> getting ? symbol instead, what could be the problem, please explain me.
> >>
> >> Thank you.
> >>
> >> balaraju
> > Hello,
> >
> > Use the method ServletResponse.setCharacterEncoding("UTF-8") in a 
> > Servlet or contentType="text/html; charset=UTF-8" in a jsp page.
> > http://java.sun.com/products/jsp/syntax/1.2/syntaxref1210.html#15653
> >
> > But charset issues are tricky because all you files need to use a 
> > known charset. And if you use a database it needs to have a supported 
> > charset also.
> > If your editor saves files in iso-8859-1 the problem is already there 
> > and the browser wil never see the right character. So you need to 
> > debug where the character is correct for the last time.
> >
> > Ronald.
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to