So I'm editing a standard HTML page. The charset is set to "utf-8" in the head. The direction on the span selector is set to "rtl" using the CSS property direction (I've also tried the html dir attribute too). I've also tried a number of Arabic specific fonts too.
This is the what is happening:
It doesn't matter what browser I use. For some reason, the Arabic text is output completely wrong... or is it? Parts of the string look similar, and other parts are just wrong.
Any ideas how to get my browser to render the Arabic text as it's shown in my clients example?
If there's one common problem that you should never overlook... It's human error.
Turns out what was provided by the client wasn't quite right.
At least...
Photoshop just wasn't displaying it correctly.
In the end, I made sure UTF-8 was set in the head,
and using an Arabic font prevented the need to add any direction properties.
However, for those of you who have come here for more a genuine problem. Another CSS properties to look into:
Adding the '!important' is necessary too.