tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: getting "?" instead of "¢"
Date Mon, 17 Jul 2006 11:49:32 GMT
Assuming you have this Character Set declaration in your html head
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

use 
U+00A2
http://www.alanwood.net/unicode/latin_1_supplement.html

HTH
Martin--
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "Ronald Klop" <ronald-mailinglist@base.nl>
To: "Tomcat Users List" <users@tomcat.apache.org>
Cc: "balaraju mandala" <balaraju.mandala@gmail.com>
Sent: Monday, July 17, 2006 5:57 AM
Subject: Re: getting "?" instead of "¢"


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.

Mime
View raw message