SetDocEncoding method

Official Content
This documentation is valid for:
Allows to explicitly set the character coding used in a document.

Syntax

&DataType.SetDocEncoding(Encoding)

Where:
Encoding
     String

Scope

Extended Data Types: XmlReader
Generators: .NET, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

Description

Allows you to explicitly set the character coding used in a document. The value indicated has precedence over the encoding property of the xml document’s declaration.

Values

  • ANSI
  • US-ASCII
  • UTF-8
  • UTF-16
  • ISO-8859-1

See Also

SetNodeEncoding
XmlReader Data Type