I now have the opportunity to expend my website into Arabic, but I have a major problem Western text is Left to right whereas Arabic is Right to left. When I copy the text sent to me in Arabic, it copies the text wrong. The template start as below…

<!doctype html>
<meta charset=“UTF-8”>
<meta http-equiv=“content-language” content=“ar”>

I have been informed, maybe misinformed, that within HTML 5 the last line above is not valid, also the DIR= is also redundant, therefore what is the right code to overcome this annoying issue?


Experimental h5 is non normative but still RTL is the value you’d use for the text direction. Regarding the META pragma directive it would be deemed ‘obsolete’ in h5, you could consider specifying the language on the root element instead. For example; HTML lang=“ar” that should very loosely cover both questions posed regarding the markup aspect.

So does that replace both of these lines?

<meta charset=“UTF-8”>
<meta http-equiv=“content-language” content=“ar”>


No, only the following: <meta http-equiv=“content-language” content=“ar”> would be obsolete since you cannot use that pragma (for the experimental h5). One alternative way would be use the lang attribute on the HTML root, resulting in: <html lang=“ar” dir=“rtl”> instead.

:slight_smile: many thanks

The dir=rtl in your html tag should (in proper user agents) also fix your text-copying.

Hello Robert,

There is an error at line 5, column 7 (absolute position 59) of “templates:Persian.dwt”: Unbalanced #EndEditable tag

What does this mean?


That has to do with your HTML editing software (dreamweaver?). It seems to be saying somewhere you started an editing tag but didn’t close it, or you’re closing one you never opened.

But this is not an HTML error. HTML doesn’t have Editable anythings (except the new contenteditable stuff they’ve added recently)

That’s a Dreamweaver specific error with a DW template editable region (I don’t have Dreamweaver installed or use it) to be balanced there has to be a #BeginEditable region and an #EndEditableRegion maybe you should create a new template loosely based on that one.

Many thanks folks. I shall investigate further :slight_smile: