fixed missing encoding problem

This commit is contained in:
Rudis Muiznieks 2019-01-16 16:47:17 -06:00
parent 098812c5a8
commit 5ace751b4b
2 changed files with 2 additions and 0 deletions

View File

@ -13,5 +13,6 @@
<PackageReference Include="Epub4Net" Version="1.2.0" />
<PackageReference Include="Ionic.Zip" Version="1.9.1.8" />
<PackageReference Include="MarkdownSharp" Version="2.0.5" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.5.1" />
</ItemGroup>
</Project>

View File

@ -98,6 +98,7 @@
_author = author;
_bookId = bookId ?? Guid.NewGuid().ToString("D");
_language = language ?? "en";
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
}
public override void Render(Model.Parser.ResolvedStory story, string outPath, bool debug = false)