Returns the encoding of the specified piece of text.
# Metadata
Platforms: mobile OS: mac, windows, linux, ios, android Introduced: 5.5 Security:
# Syntax
the encoding of { button | graphic | group }
# Examples
get the encoding of button "myButton"
put the encoding of word 1 of field "language" into tEncoding
# Description
Use the encoding property to retrieve the encoding of the specified object or field chunk.
The encoding property of a button, graphic or group returns native if the engine is storing the label or text in the native encoding and unicode otherwise.
The encoding property of a field, or chunk of a field, returns native if the specified chunk is stored in native encoding, unicode if it is UTF-16, and mixed if it is a combination of the two.
>*Note:* The encoding property is read only and cannot be set.
# Tags
# See
- **property:** label, text, unicodeText, unicodeLabel