Reply to Re: Hebrew in php

Your name:

Reply:


Posted by Chung Leong on 12/17/21 11:53

BJY wrote:
> I can't seem to use PHP code in the start of my hebrew-language pages.
>
> If I do this....
> <HTML dir="rtl" lang="he">
> <?php include 'header.inc'; ?>
> ...all is fine.
>
> However, if I do this at the start of the file...
> <?php include 'header.inc'; ?>
> ... where header.inc includes the opening HTML tag, the resulting
> output is left to right.
>
> If I View Source, there are 2 non-viewable characters before the HTML
> tag (they appear as ? in textpad, they don't appear at all in notepad).
> If i delete these characters and save the file, the output then
> appears correct. (RTL).
>
> The .php and .inc files are saved in UTF-8.
>
> This is a simplified version. What I really need is to be able to do
> cookies, output buffering, etc. at the start of the script. I also
> would like to use SMARTY, but that too does the same thing.
>
> Any ideas????
>
> Thanks in advance!

Looks like your editor is adding a LTR mark at the beginning of the
doc. Because IE treats text outside of <html></htm> as though it's
inside the document body, the character would switch the default
direction back to LTR. Set the dir attribute of <body> instead and it
should work.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация