Skip to content

Commit 3968fc5

Browse files
committed
Revert "chore: Change output html file encoding to UTF-8 (No BOM) (#9131)"
This reverts commit 505f7cf. Fixes #9171
1 parent 25918c8 commit 3968fc5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Docfx.Build.Engine/PostProcessors/HtmlPostProcessor.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ namespace Docfx.Build.Engine;
1313

1414
internal sealed class HtmlPostProcessor : IPostProcessor
1515
{
16-
private static readonly UTF8Encoding Utf8EncodingWithoutBom = new(false);
17-
1816
public List<IHtmlDocumentHandler> Handlers { get; } = new List<IHtmlDocumentHandler>();
1917

2018
private bool _handlerInitialized;
@@ -81,7 +79,7 @@ where output.Key.Equals(".html", StringComparison.OrdinalIgnoreCase)
8179
}
8280
using (var stream = EnvironmentContext.FileAbstractLayer.Create(tuple.OutputFile))
8381
{
84-
document.Save(stream, Utf8EncodingWithoutBom);
82+
document.Save(stream, Encoding.UTF8);
8583
}
8684
}
8785
foreach (var handler in Handlers)

0 commit comments

Comments
 (0)