[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-general
Subject:    Re: [SMARTY] can't identify/eliminate source of  "odd characters"
From:       OpenMacNews <openmacnews () gmail ! com>
Date:       2006-01-03 17:10:37
Message-ID: 43BAB00D.2050207 () gmail ! com
[Download RAW message or body]

-----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)

iEYEAREDAAYFAkO6sA0ACgkQlffdvTZxCMYIxwCeOz5JljSGxv6CDbE2egAdtgD6
jUgAnAxgN+pII9BuFUX/xFaGtGTtXPkF
=Ib47
-----END PGP SIGNATURE-----

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic