fixed missing encoding problem
This commit is contained in:
parent
098812c5a8
commit
5ace751b4b
|
@ -13,5 +13,6 @@
|
||||||
<PackageReference Include="Epub4Net" Version="1.2.0" />
|
<PackageReference Include="Epub4Net" Version="1.2.0" />
|
||||||
<PackageReference Include="Ionic.Zip" Version="1.9.1.8" />
|
<PackageReference Include="Ionic.Zip" Version="1.9.1.8" />
|
||||||
<PackageReference Include="MarkdownSharp" Version="2.0.5" />
|
<PackageReference Include="MarkdownSharp" Version="2.0.5" />
|
||||||
|
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.5.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -98,6 +98,7 @@
|
||||||
_author = author;
|
_author = author;
|
||||||
_bookId = bookId ?? Guid.NewGuid().ToString("D");
|
_bookId = bookId ?? Guid.NewGuid().ToString("D");
|
||||||
_language = language ?? "en";
|
_language = language ?? "en";
|
||||||
|
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Render(Model.Parser.ResolvedStory story, string outPath, bool debug = false)
|
public override void Render(Model.Parser.ResolvedStory story, string outPath, bool debug = false)
|
||||||
|
|
Loading…
Reference in New Issue