|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
amorek78 Smarty Rookie
Joined: 16 Nov 2004 Posts: 8
|
Posted: Wed Nov 17, 2004 9:12 am Post subject: removing BOM in display/fetch ? |
|
|
Hi.
Is that possible to remove BOM (Byte Order Mark) displaying or fetching a layuot file ?
Or maybe you know some good tools/text editors which do that ?
I edit my templates in Dreamweaver MX 2004 and i have checked in options not to add BOM, but it still appears.
Tom |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Nov 17, 2004 10:08 am Post subject: |
|
|
you could write a prefilter that removes the bom before compilation.
that should be easy. |
|
Back to top |
|
amorek78 Smarty Rookie
Joined: 16 Nov 2004 Posts: 8
|
Posted: Wed Nov 17, 2004 11:16 am Post subject: |
|
|
I'll try
Tom |
|
Back to top |
|
amorek78 Smarty Rookie
Joined: 16 Nov 2004 Posts: 8
|
Posted: Wed Nov 17, 2004 1:24 pm Post subject: |
|
|
I checked and really the tempaltes had BOM at the beginning of file.
I removed them with some tool and now Dreamweaver dosent add the BOM (if not checked at configuration).
So it works fine.
Because earlier i had BOM at in the output in all connections between displayed templates (i displayed 4 tempaltes to achievie layout).
But in spite of that the templates files don't have the BOM, the output html (when i check the source) has the BOM at the begining of the source.
I don't see any BOMs in the compiled files (earlier they were).
So what this BOM come from ?
Tom |
|
Back to top |
|
amorek78 Smarty Rookie
Joined: 16 Nov 2004 Posts: 8
|
Posted: Wed Nov 17, 2004 2:14 pm Post subject: |
|
|
I had some BOMs (two of them) in the included files in PHP, so it was my last problem with BOM.
EOT.
Tom |
|
Back to top |
|
shacker Smarty Rookie
Joined: 30 Oct 2005 Posts: 10
|
Posted: Fri Nov 11, 2005 9:39 pm Post subject: |
|
|
For the archives:
BBEdit does not seem to have a global preference for this, but in the Save As panel, click Options, Encoding, and select "UTF-8 No BOM".
Problem goes away |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|