I am wondering: SizeOf(Char) = 2 in never Delphi versions, but this is not enough to store all integer mappings for characters defined in unicode table, right? (As far as I know there is more characters than 65536). So how this problem is solved?
Maybe two bytes are used to encode all characters from Basic Multilingual Plane (BMP)? But what happens with characters from outside the BMP?
Could someone sheed light on this?
Thanks.
Strings outside BMP are encoded with surrogates, as in UTF-16.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With