GoFiler Legato Script Reference
Legato v 1.5d Application v 5.25a
|
Table of Contents | < < Previous | Next >> |
Chapter Five — General Functions (continued)
Overview
The AnsiToUTF function takes an 8-bit string in Unicode and converts it to Unicode Text Format (UTF).
Syntax/Parameters
Syntax
string = AnsiToUTF ( string data );
Parameters
data
A string containing ANSI text to convert.
Return Value
Returns a string 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
The function moves through the source data and encodes 8-bit ANSI characters to 8-bit Unicode Text Format. While this many seem counter intuitive, upper ANSI characters (0xC0 and above) must be encoded if they are to be used in an UTF context.
Note that there is no way to explicitly tell an 8-bit string’s encoding. Further, if written to a file, a UTF header may need to be manually inserted, depending on the eventual use of the data. See UnicodeToUTF for an example of adding a UTF header.
Related Functions
Platform Support
Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL
Legato IDE, Legato Basic
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.