Error getting tags :
error 404Error getting tags :
error 404 unicodeText | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
unicodeText
Basics
Expander triangle
Type
Property
Syntax
set the unicodeText of [chunk of] field to unicodeString
Introduced
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Specifies the text in a field, represented as Unicode (double-byte characters).
Examples

set the unicodeText of field 1 to URL "binfile:Chinese.txt"
set the unicodeText of line 4 of field 1 to mySavedText

Additional Comments
Expander triangle

Use the unicodeText property to import Unicode text from a file, or copy or export the contents of a field as Unicode.

Value:

The unicodeText of a field is a string of double-byte characters.

Comments:

If the field or chunk contains single-byte characters, getting the unicodeText property converts those characters to double-byte characters automatically, so the resulting string consists entirely of double-byte characters. If any characters in the field or chunk are single-byte, the character is padded with a null byte to turn it into a double-byte character.

If you set the unicodeText of a field to a unicodeString that contains multiple languages, Revolution automatically sets the textFont of double-byte characters to the appropriate Unicode font. It also automatically converts any non-Unicode text to single-byte characters by removing the null byte used as padding. (This saves storage space, since double-byte characters take twice as much space to store as single-byte characters.)

Note: To copy or exportUnicode text from a field while preserving font, style, size, and color information, use the htmlTextproperty.

User Comments
Expander triangle