|  | Posted by Benjamin Esham on 06/13/75 11:53 
* BJY:
 > 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.
 
 Can you show us the beginning of header.inc?  And possibly a hex dump of the
 first line or so?  If your file contains a Unicode byte order mark [1],
 those are probably the characters messing your file up.
 
 [1] http://en.wikipedia.org/wiki/Byte_Order_Mark
 
 --
 Benjamin D. Esham
 bdesham@gmail.com  |  AIM: bdesham128  |  Jabber: same as e-mail
 WHY DO THEY ALWAYS SEND THE POOR!?
  Navigation: [Reply to this message] |