Skip to content

Fix Unicode character corruption and lack of XML character escaping - #26

Open
zlondrej wants to merge 1 commit into
dylex:mainfrom
scrive:fix-character-truncation-and-xml-escaping
Open

zlondrej wants to merge 1 commit into
dylex:mainfrom
scrive:fix-character-truncation-and-xml-escaping

Conversation

@zlondrej

@zlondrej zlondrej commented Sep 9, 2026

Copy link
Copy Markdown

The originally used xshowBlob function converted String to ByteString by truncating the character to 8-bit value (Data.ByteString.Lazy.Char8.pack), essentially limiting the character set to Latin 1.

It also didn't escape XML characters properly: #7.

The issues were addressed by using xshowEscapeXml instead of xshowBlob and using UTF-8 conversion to ByteString.

The originally used xshowBlob function converted String to ByteString
by truncating the character to 8-bit value, essentially limiting
the character set to Latin 1.

It also didn't escape XML characters properly.
@zlondrej
zlondrej force-pushed the fix-character-truncation-and-xml-escaping branch from 02155e5 to 6e8a650 Compare September 14, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant