• 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

how can i choose the right encoding to read arabic

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this instead :
 
gaser hasan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In your servlet, did you use the setCharacterEncoding and setContentType methods on the response ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic