Skip to content

Commit

Permalink
Merge pull request #32 from MiroRadenovic/master
Browse files Browse the repository at this point in the history
fixed: problems with html files that contain unicode characters
  • Loading branch information
deanhume authored Nov 24, 2016
2 parents 2b4e304 + 789ab8a commit c573f55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ViewMinifier/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

/// <summary>
Expand Down Expand Up @@ -36,7 +37,9 @@ static void Main(string[] args)
string minifiedContents = MinifyHtml(filePath, features);

// Write to the same file
File.WriteAllText(filePath, minifiedContents);

https://github.com/deanhume/html-minifier.git
File.WriteAllText(filePath, minifiedContents, Encoding.UTF8);
Console.WriteLine("Minified file : " + filePath);
}
}
Expand Down

0 comments on commit c573f55

Please sign in to comment.