You are here: Re: [SMARTY] can't identify/eliminate source of "odd characters" in template-generated page source « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] can't identify/eliminate source of "odd characters" in template-generated page source

Posted by OpenMacNews on 01/03/06 19:10

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация