Re: Suppressing UTF-8 BOM output

2008-03-25 Thread phpjoy
Use a normal editor.. http://www.scintilla.org is a good one. There's an encoding called "UTF-Cookie", which doesn't save the BOM. On Mar 24, 4:37 pm, MonkeyGirl <[EMAIL PROTECTED]> wrote: > Hi. > > I'm probably missing something simple here, but a few weeks ago, my > Cake app seemed to spontan

Re: Suppressing UTF-8 BOM output

2008-03-24 Thread Samuel DeVore
Oh dear you are going to ruin our reputations as grumpy unhelpful old curmudgeons :) On Mon, Mar 24, 2008 at 1:05 PM, MonkeyGirl <[EMAIL PROTECTED]> wrote: > > > I had a similar problem with a symbol (I forget which, perhaps a ?) > > showing up on every page. Turns out it was present in a fil

Re: Suppressing UTF-8 BOM output

2008-03-24 Thread MonkeyGirl
> I had a similar problem with a symbol (I forget which, perhaps a ?) > showing up on every page. Turns out it was present in a file, I think > appController after the PHP. So I would make sure there is nothing, > whitespace included, in outside of in your included files > (app_controller.php, ap

Re: Suppressing UTF-8 BOM output

2008-03-24 Thread jonknee
> Ah, but I downloaded the homepage for the site using curl and it has > the same prefix, so it's not just for XLS generation - that's just the > one that seems to break as a result. The HTML files have the same > problem, but browsers ignore it. So whichever file it is, it appears > to be one tha

Re: Suppressing UTF-8 BOM output

2008-03-24 Thread MonkeyGirl
> Cake isn't adding the bytes, your editor probably is. That makes sense, but if Cake's always outputting them, and other PHP scripts in /app/webroot aren't, then which file's likely to have the three bytes? I'm not up on Cake enough to know which files are always being output. I've checked the l

Re: Suppressing UTF-8 BOM output

2008-03-24 Thread MonkeyGirl
> my guess is that it is a helper or a view that is used by that page(s) > something that someone edited using a different texteditor like > homeSite Ah, but I downloaded the homepage for the site using curl and it has the same prefix, so it's not just for XLS generation - that's just the one tha

Re: Suppressing UTF-8 BOM output

2008-03-24 Thread Samuel DeVore
my guess is that it is a helper or a view that is used by that page(s) something that someone edited using a different texteditor like homeSite On Mon, Mar 24, 2008 at 10:04 AM, MonkeyGirl <[EMAIL PROTECTED]> wrote: > > > Cake isn't adding the bytes, your editor probably is. > > That makes sens

Re: Suppressing UTF-8 BOM output

2008-03-24 Thread b logica
Cake isn't adding the bytes, your editor probably is. I first ran into this issue a couple of years ago when a client made some changes to some scripts I'd written. He was using HomeSite on Windows. I found some info online explaining (though I forget the details) that HomeSite does this to UTF-8

Re: Suppressing UTF-8 BOM output

2008-03-24 Thread MonkeyGirl
> I have seen this happen when one file (in my case a jpGraph file) had > a been saved with the file encoding BOM in it, when If found the file > and resaved it without it, all was good.  It actually made the jpegs > that were generated to be corrupt. Yes, I saw something along those lines mentio

Re: Suppressing UTF-8 BOM output

2008-03-24 Thread Samuel DeVore
I have seen this happen when one file (in my case a jpGraph file) had a been saved with the file encoding BOM in it, when If found the file and resaved it without it, all was good. It actually made the jpegs that were generated to be corrupt. That would be my guess, Sam D On Mon, Mar 24, 2008

Suppressing UTF-8 BOM output

2008-03-24 Thread MonkeyGirl
Hi. I'm probably missing something simple here, but a few weeks ago, my Cake app seemed to spontaneously start outputting the hex values "EF BB BF" at the beginning of all its pages. Static files such as CSS files, and non-Cake PHP files in /app/webroot, don't do this. It's just files generated w