aspose file tools*
The moose likes Java in General and the fly likes problem in retriving unicode(kannada font-indian language) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "problem in retriving unicode(kannada font-indian language)" Watch "problem in retriving unicode(kannada font-indian language)" New topic
Author

problem in retriving unicode(kannada font-indian language)

sripada nadigare
Greenhorn

Joined: May 18, 2011
Posts: 16

hi all,
while retriving the unicode from the database using struts-2 <s: select> im getting unicode as ??? symbol. how to get the actual value tobe displayed in <s:select>.im actually retriving the data from database which is stored using kannada font, (which is an south indian language), while retriving im getting ??? instead of actual characters.
please help.........


thanks in advance.


h.r.sripada
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14435
    
  23

How are you displaying the data? Are you displaying it using a font that contains the Kannada characters?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
sripada nadigare
Greenhorn

Joined: May 18, 2011
Posts: 16

thanks for your reply

yes, i am using kannada characters to display, i am fetching the data from database which is stored using kannada fonts ,i have used below settings
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page pageEncoding="UTF-8" %>

in jsp,then also i am unable to view the utf-8 characters(kannada charecters) in <s:select> tag,but in the same jsp i am able to display utf-8 characters(kannada charecters) using <s:property > tag ,but in <s:select> i am getting ??? symbols

thanks in advance
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40064
    
  28
Moving discussion: too difficult for "beginning".
sripada nadigare
Greenhorn

Joined: May 18, 2011
Posts: 16

Thanks for the Reply

I am unable to display kannada unicode or kannada fonts from <s:select> within the jsp ,but it is displaying (???) symbol ,in my jsp. I have coded like this

<s:select theme="simple" list="#{'1','jan', '2':'feb' , '3',''\u0C85' , '4':'\u0C86' } />

when i run my application i am getting the output as
jan
feb
?
?


in the drop down list ,

I have also included the below tags for utf-8 encoding in my jsp

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page pageEncoding="UTF-8" %>


please help.
thanks in advance
Pranab Baishya
Greenhorn

Joined: Oct 19, 2011
Posts: 1
Hi sripada

I am facing the same problem. Is this a bug in s:select library? Did you find any solution or work around for the problem.

Thanks in advance.

Pranab
 
jQuery in Action, 2nd edition
 
subject: problem in retriving unicode(kannada font-indian language)