fix(dotnet): preserve leading Unicode content in metadata strings (#667)

Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
Rudy Mizrahi Celekli
2026-10-06 16:18:01 +08:00
committed by GitHub
parent 94cc8475e0
commit ddea06360a
5 changed files with 71 additions and 2 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ const decodeFixedString = (blob: Buffer): string | null => {
const start = 2 + length.prefix;
if (start > blob.length - length.length) return null;
try {
return new TextDecoder("utf-8", { fatal: true }).decode(
return new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(
blob.subarray(start, start + length.length),
);
} catch (cause: unknown) {