Simplify UTF8 StrPtr usage by filmor · Pull Request #2374 · pythonnet/pythonnet
added 3 commits
May 5, 2024 20:42The documentation of the used `PyUnicode_DecodeUTF16` states that not passing `*byteorder` or passing a 0 results in the first two bytes, if they are the BOM (U+FEFF, zero-width no-break space), to be interpreted and skipped, which is incorrect when we convert a known "non BOM" string, which all strings from C# are.
filmor
marked this pull request as draft
filmor
marked this pull request as ready for review
filmor
deleted the
simplify-utf8-strptr
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters