This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in retriving unicode(kannada font-indian language)

 
sripada nadigare
Greenhorn
Posts: 16
Eclipse IDE Hibernate Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you displaying the data? Are you displaying it using a font that contains the Kannada characters?
 
sripada nadigare
Greenhorn
Posts: 16
Eclipse IDE Hibernate Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 47262
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving discussion: too difficult for "beginning".
 
sripada nadigare
Greenhorn
Posts: 16
Eclipse IDE Hibernate Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic