DesktopTextArea.UnicodeMode

From Xojo Documentation

aDesktopTextArea.UnicodeMode = newDesktopTextArea.UnicodeModesValue
or
DesktopTextArea.UnicodeModesValue = aDesktopTextArea.UnicodeMode

New in 2021r3

Supported for all project types and targets.

The method by which the method SelectionLength will count the selection.

Notes

Choosing Characters will result in a count of the number of logical characters in the selection. For example, a emoji would be counted as a single character. Choosing CodePoints will result in a count of the number of Unicode CodePoints (basically bytes) that the characters in the selection consume. An emoji, for example, requires two bytes.

The default setting is Characters on all platforms. However, for backwards compatibility, DesktopTextArea controls on layouts created in projects prior to 2020r1 will be set to Native which means CodePoints on macOS and Windows and Characters on Linux.

See Also

UnicodeModes enumeration.