saulhoward / haddock-cms

Automatically exported from code.google.com/p/haddock-cms
0 stars 0 forks source link

Unicode BOMs in site-texts files #112

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. You create a text file to be used by the site-texts plug-in. 
2. You open the text file for editing with Open Office, edit and save.
3. The page will not compile because the file has been saved in UTF-8 and there 
is a byte order 
mark (BOM) at the start of the file.

What is the expected output? What do you see instead?

The code for handling the text files should check for BOMs and silently remove 
them.

Removing the BOM, e.g. by opening the file with Komodo Edit and changing the 
settings for the 
file, solves the problem. UTF-8 pages render fine, but exotic characters might 
be a problem.

Original issue reported on code.google.com by robert.i...@gmail.com on 19 Feb 2010 at 12:53