Skip to content

Conversation

@MarkSymsCtx
Copy link
Contributor

Build the synthetic page data as byte arrays, rather than as strings. Convert the string portions in the synthetic page data as needed.

str.encode() does not deal with embedded bytes in strings, as when converting using UTF-8 (the default), this will convert '\x80' into '\xC2\x80', which leads to incorrect data getting reported.

Build the synthetic page data as byte arrays, rather than as strings.
Convert the string portions in the synthetic page data as needed.

str.encode() does not deal with embedded bytes in strings, as when converting
using UTF-8 (the default), this will convert '\x80' into '\xC2\x80', which
leads to incorrect data getting reported.

Signed-off-by: Owen Smith <owen.smith@citrix.com>
Co-authored-by: Mark Syms <mark.syms@citrix.com>
Signed-off-by: Mark Syms <mark.syms@citrix.com>
@MarkSymsCtx MarkSymsCtx merged commit ece3891 into xapi-project:master Jan 15, 2026
2 checks passed
@MarkSymsCtx MarkSymsCtx deleted the CA-420307 branch January 15, 2026 09:17
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.

4 participants