When English and Arabic words are put together in a string, words tend do shuffle as Arabic has RTL direction where as English has LTR.
I am trying to send an email and following is the Subject of my email
String subText = "Financial Details of شركة اختبار were sent";
The email subject appears as
were sent شركة مصنع الجـــوارب الراقيــــه . المحــدوده Financial Details of
After checking some other resource , i decided to add invisible RLE character at the start of which supposedly stops such shuffle but still getting same shuffled version.
char RightToLeftEmbedding = (char)0x202B;
subText = RightToLeftEmbedding + subText ;
What is wrong with the approach?