Afficher un message
Vieux 03/01/2006, 17h10   #7
OpenMacNews
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hi messju,

messju mohr wrote:
> On Mon, Jan 02, 2006 at 08:08:24PM -0800, OpenMacNews wrote:
> [...]
>> but, after generation, i'm seeing the following characters DISPLAYED at the top of my browser
>> page display:
>>
>>  
>>

> [...]
>
> what you see is a BOM (Byte Order Mark). see
> http://www.unicode.org/faq/utf_bom.html and configure your text editor
> to not write the BOM in front of any text file. neither php nor smarty
> like it.


bingo. _one_ of my templates was typed as "UTF-8 with BOM" (i have *no* idea why/how!?).
changing its type to be Western/Latin1 fixed the problem ... weird characters gone!

thx! it would've been a *while* b4 i found that :-)

cheers,

richard


- --

/"\
\ / ASCII Ribbon Campaign
X against HTML email, vCards
/ \ & micro$oft attachments

[GPG] OpenMacNews at gmail dot com
fingerprint: 50C9 1C46 2F8F DE42 2EDB D460 95F7 DDBD 3671 08C6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)

iEYEAREDAAYFAkO6sA0ACgkQlffdvTZxCMYIxwCeOz5JljSGxv 6CDbE2egAdtgD6
jUgAnAxgN+pII9BuFUX/xFaGtGTtXPkF
=Ib47
-----END PGP SIGNATURE-----
  Réponse avec citation
 
Page generated in 0,04938 seconds with 9 queries