Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter FiveGeneral Functions (continued)

UTFToUnicode Function

Overview

The UTFToUnicode function takes a UTF encoded string and converts it into a 16-bit wide wstring.

Syntax/Parameters

Syntax

wstring = UTFToUnicode ( string data );

Parameters

data

A string containing UTF text to convert.

Return Value

Returns a wstring containing the converted string. Use the IsError, IsNotError and GetLastError functions to determine if an error occurred and to retrieve a formatted error code.

Remarks

Characters are copied from 8 to 16-bits and those that are UTF are decoded. If sequence is not in valid UTF syntax, each character is copied.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic