IE9 Display labels from left to right

In my Silverlight application, I am formatting dates in a language from right to left with the following format string:

"dd-MMM-yyyy HH:mm"

The name of the month consists of right-to-left characters that reorder the formatted string and insert the time in the middle of the date. To get around this, I tried to insert the Unicode characters U + 200E and U + 200F. This worked to some degree, but IE9 conveys a control character! It almost looks like an up arrow. Has anyone come across this before or knew a way around it?

Sorry, I do not have access to the screenshot. Any help is much appreciated! Ian

+3
source share
1 answer

In what you use to display the date (e.g. TextBlock), you need to set FlowDirection = RightToLeft if you know that there will be RTL characters in the string.

0
source

All Articles