Permalink
Browse files

Merge pull request #3 from permagnus/master

BOM Issue
  • Loading branch information...
2 parents e882bbf + 7e6d863 commit 9b3fa3644549451ed7267ff116cbd3d4fe97b7a1 @skroonenburg skroonenburg committed Mar 12, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 Source/Rejuicer/Rejuicer/Model/PhysicalFileSource.cs
@@ -86,6 +86,12 @@ public OutputContent GetContent(ICacheProvider cacheProvider, Mode mode)
try
{
var fileBytes = File.ReadAllBytes(PhysicalPath);
+
+ if (fileBytes.Length > 2 && fileBytes[0] == 0xEF && fileBytes[1] == 0xBB && fileBytes[2] == 0xBF)
+ {
+ fileBytes = fileBytes.Skip(3).ToArray();
+ }
+
rejuicedValue = FileTransformationPipeline.TransformInputFile(this, fileBytes);
}
catch (IOException)

0 comments on commit 9b3fa36

Please sign in to comment.