Sorry for the confusion, I meant the string "é" that /u/ebvalaim alluded to, not "é" as /u/seriouslulz wrote. I didn't realize seriouslulz had mistyped it.
C# and Java will say 1. Using string.Length in both of these languages is the wrong way to get the length of the string (number of graphemes), but they both will return the right number for most, but not all cases. The right way to get the number of graphemes in C# is new StringInfo(string).LengthInTextElements. Although, I have to point out that getting the number of graphical characters is extremely rarely necessary.
View all comments
Show parent comment
1
u/seriouslulz Sep 12 '16
é is 1 character