Skip to content

Commit 9d0fcf1

Browse files
authored
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.
1 parent de6a37a commit 9d0fcf1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tutorials/scripting/c_sharp/c_sharp_differences.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ Use ``System.String`` (``string``). Most of Godot's String methods have an
381381
equivalent in ``System.String`` or are provided by the ``StringExtensions``
382382
class as extension methods.
383383

384+
Note that C# strings uses UTF-16 encoding, while Godot Strings uses UTF-32 encoding.
385+
384386
Example:
385387

386388
.. code-block:: csharp

0 commit comments

Comments
 (0)