Re: [SMARTY] can't identify/eliminate source of "odd characters" in template-generated page source
Jochem Maas <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
Patrick Ben Koetter wrote: > * OpenMacNews <[email protected]>: > >>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 > -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php