[dokuwiki] Re: Local.php should be saved without ByteOrderMark [was: auth.php and action.php messages in new 2005-07-13 installation]

On 7/30/05, David Ing <divirtual@xxxxxxxxxxxx> wrote:
> Yes, that was it.  (My stupidity).  Crimson Editor has options for UTF-8
>    "with BOM" and "wo BOM" -- and I obviously forgot which one to use!
> Not a bug, just user (actually administrator) error.

This is not a user error. BOM is "zero-width non-breaking space", a
valid part of unicode-containing file, and should be silently ignored
by correct software.

I also had this issue, when I edited local.php with Notepad, which
always saves UTF-8 with BOMs and does not have an option to turn them
off.

I have fixed the problem by adding the line

    ob_start('ob_gzhandler');

at the start of doku.php. This also had a nice "side-effect" of
enabling gzip-compression of output (read http://webcompression.org/).
I suggest this line to be included into official dokuwiki code.

-- 
With Respect,
Roman
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: