Search code examples
c#encodingactive-directoryoutlookxmldocument

How to display active directory RTL in Outlook


I'm using System.Xml in order to get data from xml data:

string test = item["name"].InnerXml;

The element name is in the format xxx ABC ZZZ where x and z means Hebrew letters and ABC is English.

The problem is that the result comes as: test = ZZZ ABC xxx (Hebrew letters location misplaced)

How can I reverse or align the text to the right in order to get the same text? If I will assign the variable test to a new one the text will be wrong.

EDIT: im changing the question after we figure out that is not a Code thing How can i Configure Active Directory to display in Outlook RTL in order to display english and Hebrwe Correctly


Solution

  • I never tried this but you could try inserting a unicode RTL character "\u200F" at the beginning of the string. See Right-to-Left Email. Otherwise it's probably up to the user to select the display format to RTL.