RosSoft 写道:

> You've a UTF-8 BOM at file app/webroot/index.php
>
> http://www.unicode.org/faq/utf_bom.html#22
>
> Use another editor to remove it

Yes,there is a UTF-8 BOM "FE FF",But I use ultraedit-32 can't del that
BOM.

And I think it may be not the reason,because (for example),we suppose
the cake  program first excute index.php, then include and excute
paths.php ,then include and excute bootstrap.php,then some controller
,suppose that it's managerController.php;
if the file encoding is:
index.php ansi
paths.php ansi
bootstrap.php utf-8
managerController.php utf-8

under that file encoding settings,it will say
Cannot send session cookie - headers already sent by (output started at
/var/www/html/source_code2/app/webroot/bootstrap.php:1) in
/var/www/html/source_code2/cake/libs/session.php on line 131

if the file encoding is:
index.php ansi
paths.php utf-8
bootstrap.php utf-8
managerController.php utf-8

under that file encoding settings,it will say
Cannot send session cookie - headers already sent by (output started at
/var/www/html/source_code2/app/webroot/paths.php:1) in
/var/www/html/source_code2/cake/libs/session.php on line 131

if the file encoding is:
index.php utf-8
paths.php utf-8
bootstrap.php utf-8
managerController.php utf-8

under that file encoding settings,it will say
Cannot send session cookie - headers already sent by (output started at
/var/www/html/source_code2/app/webroot/index.php:1) in
/var/www/html/source_code2/cake/libs/session.php on line 131

All together,the first file which is using utf-8 encoding will output
first,so I asked "Is the app/webroot/index.php the first file excuted
in cake?"


But may you are right:all utf-8 encoding file output a BOM,the first
utf-8 file output first,how can I kill the BOM!!


Thanks RosSoft!


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to