[dokuwiki] Re: Local.php should be saved without ByteOrderMark [was: auth.php and action.php messages in new 2005-07-13 installation]
- From: RM <romanrm@xxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sat, 30 Jul 2005 15:24:59 +0600
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
- Follow-Ups:
- [dokuwiki] Re: Local.php should be saved without ByteOrderMark
- From: Andreas Gohr
- References:
- [dokuwiki] auth.php and action.php messages in new 2005-07-13 installation
- From: David Ing
- [dokuwiki] Re: auth.php and action.php messages in new 2005-07-13 installation
- From: Andreas Gohr
- [dokuwiki] Local.php should be saved without ByteOrderMark [was: auth.php and action.php messages in new 2005-07-13 installation]
- From: David Ing
Other related posts:
- » [dokuwiki] Local.php should be saved without ByteOrderMark [was: auth.php and action.php messages in new 2005-07-13 installation]
- » [dokuwiki] Re: Local.php should be saved without ByteOrderMark [was: auth.php and action.php messages in new 2005-07-13 installation]
- [dokuwiki] Re: Local.php should be saved without ByteOrderMark
- From: Andreas Gohr
- [dokuwiki] auth.php and action.php messages in new 2005-07-13 installation
- From: David Ing
- [dokuwiki] Re: auth.php and action.php messages in new 2005-07-13 installation
- From: Andreas Gohr
- [dokuwiki] Local.php should be saved without ByteOrderMark [was: auth.php and action.php messages in new 2005-07-13 installation]
- From: David Ing