unicodePlainText

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the unicodePlainText of [chunk of] field to string
get the unicodePlainText of [chunk of] field
Associationsfield
Summary

Returns the contents of a field chunk as plain text.

Introduced4.6
DeprecatedIn LiveCode 7.0 the language was changed to handle unicode transparently. This means that language functionality which previously aided unicode text manipulation is no longer required.
OSmac, windows, linux
Platformsdesktop, server
Example
write the unicodePlainText of field 1 to file myTextFile
put word 1 to 3 of the unicodePlainText of field "lorem" into tFirstThreeWords
Values
NameTypeDescription
Value

The unicodePlainText of a field is a string.

RelatedProperty: plainText, dontWrap, unicodeFormattedText, formattedText
Description

Use the unicodePlainText property to get the content of a field as plain text with any listStyle properties being converted appropriately into plain-text for the paragraphs they affect.

When you get a field's unicodePlainText, the field's text is converted to plain text with any listStyle property being converted appropriately into plain-text.

Any paragraphs with listStyle set are prefixed by an appropriate plain-text form of the bullet or index. The property returns text encoded in UTF-16 in host byte-order.

Important: As this property is deprecated, it should not be used in new code; simply get the plainText as normal. The following are now equivalent:

get the unicodePlainText of field 1
get textEncode(the plainText of field 1, "UTF16")

Tagstext processing