This week's giveaway is in the Java in General forum.
We're giving away four copies of Java Challengers and have Rafael del Nero on-line!
See this thread for details.
Win a copy of Java Challengers this week in the Java in General forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Arabic letters in Text object

Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Arabic letters in Text object
I want to create a web pages which has to show the mother language the user clicks. For eg. French, German, Arabic. If a particular language is selected then all web pages should be in that language.
I want to know is it possible to make a text field object is made to enter Arabic character and is it possible to make it accept it from right to left in typing.
Can any one help me. I am not sure how browser will support it.
Thanks and Regards
Saloon Keeper
Posts: 23540
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're pretty much dependent on whether the user's particular browser wants to support that feature, although there's a server-side element as well, in that the browser and server can negotiate NLS support. Apache has pretty good docs on how this can be configured - I haven't studied what might be in any J2EE servers, but I did notice that there's a setLocale() method for serlvet responses to allow for proper formatting of dates, currency, large numbers, etc. (this also sets the charset in the content-type header).
You'll probably also want to pay attention to the language-code and charset options of the FORM tag - this is where you'd have to let the browser know what to do with the input tags as far as selecting character sets and directionality (if the browser supports them).
You might also want to snoop the html generated by Arabic websites to see what they're using.
Finally, don't forget that if you are persisting the data, make sure your DBMS supports NLS and is set up to do so!
Good Luck (or maybe "hattan sa3id"!)
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic