Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Special char issue

 
venkatreddy gangireddy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having some data in database which is havig Euro symbol. My database character set is "UTF-8". When i am trying to retrieve that data into a drop down That Euro symbol is coming as a "box" symbol... I am also setting the response content type to UTF-8 in my servlet. And also setting browser html content type to utf-8 in my JSP by using below meta tag
<META http-equiv="Content-Type" content="text/html; charset=utf-8">. Even then that euro symbol is coming as box only. Can any one please suggest a solution...
[ March 21, 2007: Message edited by: Bear Bibeault ]
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which font is used to display the page - does it include the Euro symbol?

Would it be an option to use the &euro; HTML entity instead?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
EaseUp
to find out why adding the word 'urgent' to your post or subject line can slow down or even eliminate responses to your question.

Again, welcome to JavaRanch and good luck with your question.
-Ben
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I removed URGENT from the title.
 
venkatreddy gangireddy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
Which font is used to display the page - does it include the Euro symbol?

Would it be an option to use the &euro; HTML entity instead?


Thw font Properties are:
----------------------
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
color: #006699;
font-weight: bold;
we can't use &euro; becoz if browser or web server dosnt support that char it wouldnt be displayed.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we can't use &euro; becoz if browser or web server dosnt support that char it wouldnt be displayed.


The web server doesn't need to support anything.

Arial and Helvetica both include the Euro symbol; that's why I asked which font was used to actually display the page, which may be different from the one specified in the HTML.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic