TextEncoding.Utf16

Updated on

TextEncoding.Utf16 (1200) is an enumeration that specifies the text encoding type. It is a member of the TextEncoding.Type and specifies to use the UTF16 little endian binary form.

Examples

Here’s a simple example of how you can use the TextEncoding.Utf16 enumeration together within the BinaryFormat.Text function:

// Output: "å¡£"
let
  binaryData = #binary( {99, 88, 77} ),
  fomatFunction = BinaryFormat.Text( 2, TextEncoding.Utf16 ),
  result = fomatFunction( binaryData )
in
  result

Other related enumerations are:

Applies to

Here’s a list of functions that work with TextEncoding.Type:

Contribute » | Contributors: Rick de Groot

2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy