Keep in mind that many products still can't handle unicode files and so even a perfectly valid UTF-8 file might be displayed wrong. Additionally for plain text files there's the problem that the program has no way sure-fire to know what encoding it is supposed to use when loading the file, so you'll have to tell it.
If you plan to somehow exchange data you have to make sure that it's understood by the other side. You can either specify that you'll only ever use one encoding (usually UTF-8), but that's unflexible and sometimes it's not possible (for example when you don't control the other end) or use a format that specifies the encoding it uses (XML for example).
sorry for being late on this... and yes ill try not to be careless again with my writing.
the problem was solved as the file was wrongly sent.
Now, i m getting the arabic names of the companies i need to show on my interface (In Arabic) along with their corresponding ascii values.
i have already created code to display arabic words in my application but i was doing it through hardcoding the unicode values in the application.
I am new to this part of java, please let me know how to change the text in the file to an equivalent unicode value.
Thank you all,
liza