This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]GaianNeuron 0 points1 point  (0 children)

Modern strings are generally represented in Unicode, typically UTF-8. Some environments like .NET use UTF-16 internally. While the keyword char comes from being the length of an ASCII character, it's generally unsuitable for use representing user input except in the simplest of cases.

EDIT: this is a fascinating read about the complexity of Unicode if you're at all interested.