Afficher un message
Vieux 03/01/2006, 10h53   #6
Jochem Maas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] can't identify/eliminate source of "odd characters"in template-generated page source

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
>

  Réponse avec citation
 
Page generated in 0,05216 seconds with 9 queries