File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes i18n Basic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "i18n Basic" Watch "i18n Basic" New topic
Author

i18n Basic

nuur alif
Greenhorn

Joined: Nov 12, 2008
Posts: 10
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
Bartender

Joined: Oct 14, 2005
Posts: 18643
    
    8

Yes. Java handles all Unicode characters and treats them all equally.
nuur alif
Greenhorn

Joined: Nov 12, 2008
Posts: 10
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

Joined: Nov 12, 2008
Posts: 10
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

Joined: Nov 12, 2008
Posts: 10
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
Marshal

Joined: Mar 22, 2005
Posts: 42263
    
  64
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.


Ping & DNS - my free Android networking tools app
nuur alif
Greenhorn

Joined: Nov 12, 2008
Posts: 10
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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: i18n Basic