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

how can i choose the right encoding to read arabic

 
gaser hasan
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please I have a problem in the page encoding where it cant read arabic rightly:
- my webpages are jsp and i tried the encoding directive

- and the meta tague header


but it shows me the data selected from the database encrypted ( محاورات)
- when i removed the java directive it needed to select the utf-8 encoding manually from the browser to be read
so can any one please tell me how can i solve this problem and choose the right way to palce encoding ?
by the way i set the chareset for the database utf-8


thanks in advance

 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this instead :
 
gaser hasan
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Christophe Verré for reply but i tried it before and now but it didn't solve the matter

but you know that if i removed the directive completely and kept the meta tage header it shows me the language encrypted but when selecting utf-8manually
it shows the language ok so my i know if there is some thing that select the chareset utf-8 automatically ?


thanks in advance
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your servlet, did you use the setCharacterEncoding and setContentType methods on the response ?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic