W3C home > Mailing lists > Public > www-international@w3.org > April to June 2004

In Netscape 4.73 some Japanese characters being not shown properly in alt tag

From: souravm <souravm@infosys.com>
Date: Wed, 5 May 2004 17:07:05 +0530
Message-ID: <755FA95DB839D211856B0008C7287D93116E0953@kecmsg02.ad.infosys.com>
To: <i18n-prog@yahoogroups.com>, <www-international@w3.org>

Hi All,

I'm having problem in displaying certain Japanese characters in Netscape 4.73 (running on Windows 2000 server) under <alt> tag of image. 

Those characters appear fine when I view the same page in IE. Also even in Netscape when they are put as label/plain text on html page, they appear fine. 
Also, if I do a View Source on the browser and see the resultant HTML page - the characters shown within the <alt> tag appear fine

Some of the characters which are showing such behaviour are - ッ  情 存 and 択.




The jsp I'm using is -

jsp code.............

<html>
<%@ page contentType="text/html; charset=UTF-8"%>
<% 
   
   String toolTip1 = "¥u30c3";
   String toolTip2 = "¥u60c5";
   String toolTip3 = "¥u5b58";
   String toolTip4 = "¥u629e";
     
  String url1 = "image/en/loginbutton.gif";
 %>
<body>
Tool Tip string = <%=toolTip1%>
<Br>
Image : <img src="image/en/loginbutton.gif" alt="<%=toolTip1%>" >
<Br>
<Br>
Tool Tip string = <%=toolTip2%>
<Br>
Image : <img src="image/en/loginbutton.gif" alt="<%=toolTip2%>" >
<Br>
<Br>
Tool Tip string = <%=toolTip3%>
<Br>
Image : <img src="image/en/loginbutton.gif" alt="<%=toolTip3%>" >
<Br>
<Br>
Tool Tip string = <%=toolTip4%>
<Br>
Image : <img src="image/en/loginbutton.gif" alt="<%=toolTip4%>" >
</body>
</html>

---------------
The HTML file getting generated (as shown by view source of browser) ------------


<html>




<body>
Tool Tip string 1= ッ
<Br>
Image : <img src="image/en/loginbutton.gif" alt="ッ" >
<Br>
<Br>
Tool Tip string = 情
<Br>
Image : <img src="image/en/loginbutton.gif" alt="情" >
<Br>
<Br>
Tool Tip string = 存
<Br>
Image : <img src="image/en/loginbutton.gif" alt="存" >
<Br>
<Br>
Tool Tip string = 択
<Br>
Image : <img src="image/en/loginbutton.gif" alt="択" >
</body>
</html> 
----------------------------------------------------------


Can anyone please let me know what is the reason for some specific characters getting garbled only in case of <alt> tag ? Is it a bug in Netscape ? Any solution for this problem ?

Regards,
Sourav
Received on Wednesday, 5 May 2004 07:38:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:17:03 GMT