Skip to content

Commit

Permalink
Error on load book then is has windows-1521 codepage. (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
palacex authored Jan 31, 2024
1 parent aa26020 commit 776fd30
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions samples/FBLibrary.Sample.ConsoleApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Text;
using System.Xml;
using FB2Library;
using FB2Library.Elements;


Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);

var filePath = Path.Combine("..", "..", "..", "..", "..", "files", "test.fb2");

await using var fileStream = new FileStream(filePath, FileMode.Open);

var readerSettings = new XmlReaderSettings
Expand Down

0 comments on commit 776fd30

Please sign in to comment.