3 ms·
According to python. Every language can have a different definition. C#, for example, defines the blocks to be Char objects, which is based on UTF 16: > The Le
by ThunderSizzle 3y ago
According to python. Every language can have a different definition. C#, for example, defines the blocks to be Char objects, which is based on UTF 16:
> The Length property of a string represents the number of Char objects it contains, not the number of Unicode characters.
https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/strings/ https://learn.microsoft.com/en-us/dotnet/csharp/programming-...
- WorldMaker 3y agoThough C# also recommends the Rune APIs for more modern/better code point handling. The Rune APIs have a bit more in common with Python 3's unicode treatment than the classic (and sometimes wrong) UTF-16 approach. https://learn.microsoft.com/en-us/dotnet/api/system.text.rune?view=net-7.0 https://learn.microsoft.com/en-us/dotnet/api/system.text.run...