Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i18n Basic

 
nuur alif
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • 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..
 
Paul Clapham
Sheriff
Posts: 20711
29
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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...
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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
  • 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...
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic