Team LiB   Previous Section   Next Section
international text

Allowed coercions

List with one item
string
Unicode text
integer or real if text depicts a valid number

Syntax

set intText to "The World" as international text

Description

The international text class stores string data differently than a standard string. Each chunk of international text begins with a four-character language code and a four-character script code, both of which determine the format of subsequent bytes of text. A variable declared as type international text can be used to store text that is comprised of Chinese characters, for instance, but only if the Macintosh computer running the script has the proper language kit installed.

    Team LiB   Previous Section   Next Section