Sunday, August 30, 2009

Re: Extra newline character in every page??

i'm agree with euromark (munich)

i have same problem because i save my file with

windows notepad and result of this work is generate white space in
output html.

finally i save my document with Notepad++ and select this format : "
UTF8 without BOM "

(( BOM = Byte Order Mark ))

BOM use for UTF16 and UTF32.you must save your document with correct
format , some

editors show BOM and you can remove this line from your code but some
editor

don't show this. i use Notepad++ and from menu bar and format menu
select : UTF8 without BOM.


On Aug 30, 8:18 pm, "euromark (munich)" <dereurom...@googlemail.com>
wrote:
> i once had this problem with some trash editor from the internet
> they save your utf8 encoded pages with BOM without even asking etc.
>
> those might be interpreted as newline (at the beginning of the
> document)
>
> you should save your documents with proper editors - not using BOM
> just normal "utf8"
>
> well - the symptoms are similar - so i guess this could be your
> problem
>
> On 30 Aug., 17:07, "Dr. Loboto" <drlob...@gmail.com> wrote:
>
> > Check your php files (models, controllers, etc) for whitespace before/
> > after php tags.
>
> > On Aug 29, 4:50 pm, Weber Chu <weberwp...@gmail.com> wrote:
>
> > > I found there is newline character "\r\n" in the start of every page
> > > no matter which layout I am using.
>
> > > i.e. before "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1......."
>
> > > I have also checked that all layour .ctp do not contain "\r\n" at the
> > > start.
> > > This make my captcha image cannot be shown properly.
>
> > > Does anybody know what is happening? Thank you.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: