You are here: Re: Hebrew in php « PHP Programming Language « IT news, forums, messages
Re: Hebrew in php

Posted by BJY on 12/17/18 11:53

Chung Leong wrote:
> Set the dir attribute of <body> instead and it should work.
Chung - Thanks, setting the dir on the body tag did solve this specific
rtl problem... But i'm still trying to solve the main problem of these
extraneous characters...

Benjamin Esham wrote:
> 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.

The hex dump of the output indeed shows 'junk' which i don't know where
it comes from:
EF BB BF EF BB BF EF BB BF 3C 48 54 4D 4C
.... where the 3C indicates the start of the <HTML tag

Any idea what makes PHP spit out this at the start of output?


The header.inc is pretty straight-forward:
<HTML dir="rtl" lang="he">
<TITLE>Burritos - בוריטוס - מסעדה מקסיקנית</TITLE>
<script language="javascript" src="burritos.js"></script>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<HEAD>
<style>
<?php include 'burritos.css'; ?>
</style>
..... and then more html

Thanks again!

 

Navigation:

[Reply to this 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

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