title: write text file mix between arabic and english
body: <p>i'm trying to write in text file sentences that contains Arabic and English but the problem that both languages have direction RTL and LTR so the output text file don't save the order of the words and some words come before each other that is wrong, the problem fixed when i change the text direction from the notepad or any text editor, is there any way to fix this using java?</p>