Reference > Functions reference > Container functions > TextDecode
 
TextDecode
Purpose 
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 text from the file in a container field converted to Windows character encoding.
Related topics 
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas