aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Special char issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Special char issue" Watch "Special char issue" New topic
Author

Special char issue

venkatreddy gangireddy
Greenhorn

Joined: Feb 26, 2007
Posts: 8
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
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
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?


Ping & DNS - my free Android networking tools app
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61218
    
  66

I removed URGENT from the title.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
venkatreddy gangireddy
Greenhorn

Joined: Feb 26, 2007
Posts: 8
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
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Special char issue