From 3ed51d58d3e6066e47935abeb967f082faaf445c Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Mon, 22 Jul 2024 10:54:25 -0700 Subject: [PATCH] Update String(sbyte*[,...]) docs about encoding Update the docs based on the actual platform behavior. Fixes https://github.com/dotnet/runtime/issues/92919 --- xml/System/String.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/System/String.xml b/xml/System/String.xml index 2d9d579ad9f..1bf279d81de 100644 --- a/xml/System/String.xml +++ b/xml/System/String.xml @@ -373,7 +373,7 @@ - A pointer to a null-terminated array of 8-bit signed integers. The integers are interpreted using the current system code page encoding (that is, the encoding specified by ). + A pointer to a null-terminated array of 8-bit signed integers. The integers are interpreted using the current system code page encoding on Windows (referred to as CP_ACP) and as UTF-8 encoding on non-Windows. Initializes a new instance of the class to the value indicated by a pointer to an array of 8-bit signed integers. and is grea - A pointer to an array of 8-bit signed integers. The integers are interpreted using the current system code page encoding (that is, the encoding specified by ). + A pointer to an array of 8-bit signed integers. The integers are interpreted using the current system code page encoding on Windows (referred to as CP_ACP) and as UTF-8 encoding on non-Windows. The starting position within . The number of characters within to use. Initializes a new instance of the class to the value indicated by a specified pointer to an array of 8-bit signed integers, a starting position within that array, and a length.