I have file which contains data in EBCIDC format.The data contains both english and arabic characters.I have to convert into UTF-8.Iam able to convert the data successfully into unicode.But iam losing out newline.All the charaters are appearing in the single line after conversion to unicode.Please help me.What is wrong with this code.
public static void main(String args)
// Open the file that is the first
// command line parameter
sv.srikrishna kitti wrote:Now newline issue is resolved but some arabic characters are appearing as ?.please help me
The reason why that happens probably doesn't have anything to do with your program, but with the software that you use to display the output text. Where and how are you displaying the output? Does the font that is being used contain arabic characters? If not, they might appear as '?'. Does the software that you use to display the output understand UTF-8 encoding?
I use microsoft word with the font windows arabic for display purporse.I don't think it is something to do with software because when i was reading byte by byte as mentioned in previous posts all the arabic characters were getting displayed properly but new line was the problem.But now newline issue is resolved but now having problem with some arabic characters.