Search code examples
htmlbidi

Bi-directional Browser Title (Hebrew and English characters in Title)


I have a aspx page whose title has both Hebrew and English characters in it and the order of the words gets messed up.
Is there a way to style the title so the words don't get messed up, or is it an OS problem?

This is what the title should say:

good

This is what the title actually looks like:

not good


Solution

  • Try using the Unicode direction embedding codes:

    The result looks like ‫הוספת קובץ JS עורך ישן‬ - Mozilla Firefox, and it's marked up as follows:

    ‫ (right-to-left embedding)
    הוספת קובץ
    JS
    עורך ישן
    ‬ (pop directional formatting)
    - Mozilla Firefox
    

    (You ought to be able to write the title with <title dir="rtl">, but I couldn't get that to work.)