Use non-BOM encodings by filmor · Pull Request #2370 · pythonnet/pythonnet

@filmor

The 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 filmor marked this pull request as ready for review

May 5, 2024 18:42

@filmor filmor deleted the fix-bom-strings branch

May 10, 2024 19:55