From 9d0fcf128892ef7e42ed3138870b1ca55465532b Mon Sep 17 00:00:00 2001 From: Athenr <82354163+Athenr@users.noreply.github.com> Date: Fri, 2 May 2025 16:14:26 -0400 Subject: [PATCH 1/2] Update c_sharp_differences.rst with C# string and Godot String UTF encoding Clarified that C# System.String uses UTF-16 encoding while Godot String uses UTF-32. --- tutorials/scripting/c_sharp/c_sharp_differences.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tutorials/scripting/c_sharp/c_sharp_differences.rst b/tutorials/scripting/c_sharp/c_sharp_differences.rst index 55b3de3188e..c7707bb0509 100644 --- a/tutorials/scripting/c_sharp/c_sharp_differences.rst +++ b/tutorials/scripting/c_sharp/c_sharp_differences.rst @@ -381,6 +381,8 @@ Use ``System.String`` (``string``). Most of Godot's String methods have an equivalent in ``System.String`` or are provided by the ``StringExtensions`` class as extension methods. +Note that C# strings uses UTF-16 encoding, while Godot Strings uses UTF-32 encoding. + Example: .. code-block:: csharp From 55f2cf1509fc4ba8422b0dd99b46325a82500bf1 Mon Sep 17 00:00:00 2001 From: Athenr <82354163+Athenr@users.noreply.github.com> Date: Sat, 3 May 2025 20:47:16 -0400 Subject: [PATCH 2/2] Update tutorials/scripting/c_sharp/c_sharp_differences.rst Revising for grammatical fixes in changes. Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> --- tutorials/scripting/c_sharp/c_sharp_differences.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/scripting/c_sharp/c_sharp_differences.rst b/tutorials/scripting/c_sharp/c_sharp_differences.rst index c7707bb0509..b1c9fcb7fc8 100644 --- a/tutorials/scripting/c_sharp/c_sharp_differences.rst +++ b/tutorials/scripting/c_sharp/c_sharp_differences.rst @@ -381,7 +381,7 @@ Use ``System.String`` (``string``). Most of Godot's String methods have an equivalent in ``System.String`` or are provided by the ``StringExtensions`` class as extension methods. -Note that C# strings uses UTF-16 encoding, while Godot Strings uses UTF-32 encoding. +Note that C# strings use UTF-16 encoding, while Godot Strings use UTF-32 encoding. Example: