Browse Source

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.
Athenr 3 months ago
parent
commit
9d0fcf1288
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tutorials/scripting/c_sharp/c_sharp_differences.rst

+ 2 - 0
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``
 equivalent in ``System.String`` or are provided by the ``StringExtensions``
 class as extension methods.
 class as extension methods.
 
 
+Note that C# strings uses UTF-16 encoding, while Godot Strings uses UTF-32 encoding.
+
 Example:
 Example:
 
 
 .. code-block:: csharp
 .. code-block:: csharp