test
[ikiwiki.git] / doc / bugs / UTF-8_BOM_showing_up_inside_a_page__63__.mdwn
1 I have a git-backed ikiwiki install, and when I commit and push a file from an x86 host (LANG=en_US.UTF-8) to the Ikiwiki box, which is Debian GNU/Linux on Sparc, I sometimes get unusual characters (ef bb ff) before the first character of the wiki text.  It seems that this is a UTF-8 "byte order mark" that is getting inserted automatically into the .wiki file by my editor: http://vim.wikia.com/wiki/VimTip246#Tip:_.23246_-_Working_with_Unicode 
2
3 Example:
4
5         http://monkey.linuxworld.com/lwce-2007/
6
7 Is there any way for ikiwiki to spot when .wiki files have this BOM and
8 deal with it, or should I make sure to strip it out before committing?
9
10 > It would be easy to make ikiwiki strip out the BOM. For example, a simple
11 > plugin could be written to s/// them out as a filter.
12 >
13 > I'm unsure if ikiwiki should do this by default. --[[Joey]]
14
15 > Looked at this some more. It seems this would be a browser bug, after
16 > all, it's not displaying the BOM properly (as a zero-width character).
17 > To test, I've added a BOM to this file. --[[Joey]]