Reference > Functions reference > Container functions > TextDecode
 

TextDecode

Returns text decoded from container data using the specified character encoding.

Format 

TextDecode ( container ; encoding )

Parameters 

container - any container field with encoded text data.

encoding - the name of the character encoding used in container (see below).

Data type returned 

text

Originated in 

FileMaker Pro 16.0

Description 

Converts a text file in a container field from the specified character encoding to text using the UTF-16LE encoding that FileMaker uses.

For the encoding parameter, use one of the values defined for the TextEncode function.

Notes 

This function is not supported in runtime solutions and returns "?".

Example 1 

TextDecode ( table::container ; "windows-1252" ) returns UTF-16LE-encoded text from the file in a container field that contains text with Windows character encoding.

Related topics 

Functions reference (category list)

Functions reference (alphabetical list)

About formulas

About functions

Defining calculation fields

Using operators in formulas