• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem in retriving unicode(kannada font-indian language)

 
Greenhorn
Posts: 16
Hibernate Eclipse IDE Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hibernate Eclipse IDE Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving discussion: too difficult for "beginning".
 
sripada nadigare
Greenhorn
Posts: 16
Hibernate Eclipse IDE Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic