GoFiler Legato Script Reference
Legato v 1.5d Application v 5.25a
|
Table of Contents | < < Previous | Next >> |
Chapter Eleven — SGML Functions (continued)
Overview
The SGMLSetUTFEncoding function sets the character encoding scheme to UTF-8 or ASCII.
Syntax/Parameters
Syntax
int = SGMLSetUTFEncoding ( handle hSGML, [int mode] );
Parameters
hSGML
A handle to an SGML Object.
mode
An optional int specifying the mode to employ. If non-zero, the mode is set to UTF-8, if zero it is set to ASCII, if -1 or omitted, the current value returned,
Return Value
An int as ERROR_NONE (0) on success of setting mode, zero or non-zero if reading the current encoding state or a formatted error code on error.
Remarks
UTF-8 allows for the encoding of Unicode characters within an 8-bit stream of characters. By default, the HTML element validators are set to expect ASCII.
The SGML parser is not encoding aware except that it expect 8-bit characters in SGML structure. It is up to the programmer to set the encoding as required. Encoding comes into play when validating attributes specified as CDATA such as the HTML core attribute TITLE.
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.