• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

i18n Basic

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

can anybody explain, it is possible top treat unicode character (arabic) same as latin character? such as,can we append char, sort char or etc for the arabic character?

please...hopefully someone can help me here..

thanks in advanced..
 
Marshal
Posts: 28297
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. Java handles all Unicode characters and treats them all equally.
 
nuur alif
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks a lot..

ok.. i will read and try to understand further. If there's any doubt hopefully anybody in this family can help me

thanks!
 
nuur alif
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hmm... i had read about i18n for a brief ...

i am wondering, it is possible for me if i want to read a arabic input from the other file or hardcoded?

If there is thousand of arabic character (example a arabic speech file)?

How can i retrieve the character from the arabic document file?

or put the input through the keyboard to any jTextField such as we treat the latin character?



 
nuur alif
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i try this code below



in try.txt i wrote the arabic text then, i save as type UTF-8 encoding..

the output is like this:

Enter File name : try.txt
File text : ??? ??? ???
Reading Process Completly Successfully.

Hmm..? am i need to do something such as local/properties class?

hopefully somebody can guide me...i an lost


thanks in advanced...
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The console where you're printing this to most likely does not support Arabic characters (many Console don't support much beyond ISO-8859-1), so the fact that the characters don't print properly doesn't mean much.

You can use the String.charAt method to check whether the string contains the proper Arabic characters.
 
nuur alif
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ulf Dittmer:
The console where you're printing this to most likely does not support Arabic characters (many Console don't support much beyond ISO-8859-1), so the fact that the characters don't print properly doesn't mean much.

You can use the String.charAt method to check whether the string contains the proper Arabic characters.



hmmm.. i need to display it at console.. do i need to doing a setting? i am using eclipse IDE...
 
Your buns are mine! But you can have this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic