Re: [PHP] Working in UTF-8 - BOM trouble

2009-03-31 Thread Jan G.B.
2009/3/31 Merlin Morgenstern merli...@fastmail.fm:
 that php has trouble with files that are saved in UTF-8 with BOM. It is
 causing strange bahavior like adding extra headers. On the other hand most
 editors only save UTF-8 with BOM.

 Has somebody experienced the same problem? How did you overcome it?

Use an Editor that can save without BOM. :-)
I prefer Komodo Edit (Multiplattform) or Notepad++ or gPHPedit if it
should be lightweight.
All mentioned programs are opensource.

Bye

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Working in UTF-8 - BOM trouble

2009-03-31 Thread Andrea Giammarchi

Directly from W3:

http://www.w3.org/International/questions/qa-utf8-bom.en.php

Notepad++ saves without BOM, it's fast, cool, and free ;)

 To: php-general@lists.php.net
 Date: Tue, 31 Mar 2009 06:32:41 +0200
 From: merli...@fastmail.fm
 Subject: [PHP] Working in UTF-8 - BOM trouble
 
 Hi there,
 
 I am having trouble to switch with an i18n project to utf-8. The problem 
 is, that php has trouble with files that are saved in UTF-8 with BOM. It 
 is causing strange bahavior like adding extra headers. On the other hand 
 most editors only save UTF-8 with BOM.
 
 Has somebody experienced the same problem? How did you overcome it?
 
 Regards, Merlin
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx

[PHP] Working in UTF-8 - BOM trouble

2009-03-30 Thread Merlin Morgenstern

Hi there,

I am having trouble to switch with an i18n project to utf-8. The problem 
is, that php has trouble with files that are saved in UTF-8 with BOM. It 
is causing strange bahavior like adding extra headers. On the other hand 
most editors only save UTF-8 with BOM.


Has somebody experienced the same problem? How did you overcome it?

Regards, Merlin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php