Hello i am not able to print the arabic language in java. I have converted the arabic in unicode . But when i read thos unicode as string in java and try to print out .I am getting ????? . Please help soon

Recommended Answers

Have you set your LANG environment variable to the appropriate setting for Arabic output? The default for most systems is utf-8 which would not help much. There may be Java functions to change the language in use as well that you can use within your program before you try to …

Jump to Post

All 3 Replies

Have you set your LANG environment variable to the appropriate setting for Arabic output? The default for most systems is utf-8 which would not help much. There may be Java functions to change the language in use as well that you can use within your program before you try to output the data.

Can you please be more specific. Do you mean that you want to print arabic text on the screen and it's not working. What is the error?

?? Any errors??

String example = "مرحبا يا صديقي ";
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.