source code file encode unicode #284

Closed
opened 2026-01-29 14:32:43 +00:00 by claunia · 1 comment
Owner

Originally created by @xp44mm on GitHub (Mar 26, 2019).

the encode of some source code file has messy code. they sould be saved in utf-8. for example,
markdig\src\Markdig.Tests\ > ArgumentOutOfRangeException.md, hang.md, TestParser.cs

        [Test]
        public void TestInvalidHtmlEntity()
        {
            var input = "9&ddr;&*&ddr;&de��__";
            TestSpec(input, "<p>9&amp;ddr;&amp;*&amp;ddr;&amp;de��__</p>");
        }

maybe there is other. i don't test fully.

Originally created by @xp44mm on GitHub (Mar 26, 2019). the encode of some source code file has messy code. they sould be saved in `utf-8`. for example, markdig\src\Markdig.Tests\ > ArgumentOutOfRangeException.md, hang.md, TestParser.cs ```C# [Test] public void TestInvalidHtmlEntity() { var input = "9&ddr;&*&ddr;&de��__"; TestSpec(input, "<p>9&amp;ddr;&amp;*&amp;ddr;&amp;de��__</p>"); } ``` maybe there is other. i don't test fully.
claunia added the invalid label 2026-01-29 14:32:43 +00:00
Author
Owner

@MihaZupan commented on GitHub (Mar 26, 2019):

Those test cases were found by a fuzzer. Haven't checked, but there are probably non-printable characters there as well.

@MihaZupan commented on GitHub (Mar 26, 2019): Those test cases were found by a fuzzer. Haven't checked, but there are probably non-printable characters there as well.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#284