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 files it encounters. They were created on Linux but I don't know if that's relevant.
I think the fix was to tell my client to use something else ;-) Sorry, I can't remember more precisely than that. On Mon, Mar 24, 2008 at 11:44 AM, MonkeyGirl <[EMAIL PROTECTED]> wrote: > > > 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 mentioned in this thread: > > http://groups.google.co.uk/group/cake-php/browse_thread/thread/8a6f7da0c76f2711/b29965f5edd8cfcf > > Using the Unix command "dd if=oldfile.xls of=newfile.xls skip=3 bs=1" > I can confirm that taking off the first three chars does indeed fix > it, but I just need to know how to do this in CakePHP, or ideally to > stop it prefixing the output with them in the first place. Saving the > output as a file on the server, changing it, then outputting it rather > than just outputting the data to begin with would be a rather awkward > workaround. > > Thanks, > Zoe. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
