For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > January 2006 > Re: [SMARTY] can't identify/eliminate source of "odd characters"









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] can't identify/eliminate source of "odd characters"
OpenMacNews

2006-01-09, 10:21 pm

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

hi messju,

messju mohr wrote:
> On Mon, Jan 02, 2006 at 08:08:24PM -0800, OpenMacNews wrote:
> [...]
> [...]
>
> 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)

iEYEAREDAAYFAkO6sA0ACgkQlffdvTZxCMYIxwCe
Oz5JljSGxv6CDbE2egAdtgD6
jUgAnAxgN+pII9BuFUX/xFaGtGTtXPkF
=Ib47
-----END PGP SIGNATURE-----
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com