You are here: Re: [SMARTY] can't identify/eliminate source of "odd characters" in template-generated page source « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] can't identify/eliminate source of "odd characters" in template-generated page source

Posted by Jochem Maas on 01/03/06 12:53

Patrick Ben Koetter wrote:
> * OpenMacNews <openmacnews@gmail.com>:
>
>>hi mark,
>>
>>thanks 4 the reply!
>>
>>Mark Wright wrote:
>>
>>>Try this:
>>><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
>>>
>>>Make sure you are using a plain text editor, not textedit.
>>
>>using that encoding CHANGES the characters, but does not eliminate them ... which makes me
>>fairly _certain_ it's the encoding of some silly &^*&! file in my mess.
>>
>>i think a bulk line-ending/encoding housecleaning of all my text file is in order ... now if i
>>can just remember how to set them in shell!
>
>
> My last lesson had been: No whitespace before or after <?php ?>.

better yet just drop the last ?> if there is no static text to output in the rest of
the file... e.g.

---------------------------------------------------
<?php

phpinfo();
include "my_special_info.php"

?>

---------------------------------------------------

becomes:

---------------------------------------------------
<?php

phpinfo();
include "my_special_info.php"


---------------------------------------------------

no more trailing spaces issues at any rate :-)

>
> p@rick
>

 

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

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