Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

removing BOM in display/fetch ?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
amorek78
Smarty Rookie


Joined: 16 Nov 2004
Posts: 8

PostPosted: Wed Nov 17, 2004 9:12 am    Post subject: removing BOM in display/fetch ? Reply with quote

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
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Wed Nov 17, 2004 10:08 am    Post subject: Reply with quote

you could write a prefilter that removes the bom before compilation.
that should be easy.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
amorek78
Smarty Rookie


Joined: 16 Nov 2004
Posts: 8

PostPosted: Wed Nov 17, 2004 11:16 am    Post subject: Reply with quote

I'll try Smile

Tom
Back to top
View user's profile Send private message
amorek78
Smarty Rookie


Joined: 16 Nov 2004
Posts: 8

PostPosted: Wed Nov 17, 2004 1:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
amorek78
Smarty Rookie


Joined: 16 Nov 2004
Posts: 8

PostPosted: Wed Nov 17, 2004 2:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
shacker
Smarty Rookie


Joined: 30 Oct 2005
Posts: 10

PostPosted: Fri Nov 11, 2005 9:39 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP