ODSCHARSET= Option

Specifies the character set to be generated in the META declaration for the output.
Valid in: LIBNAME statement for the XML engine
Category: Data Access

Syntax

ODSCHARSET=character-set;

Required Argument

character-set
For the LIBNAME statement for the XML engine, specifies the character set to use in the ENCODING= attribute.
An example of an encoding is ISO-8859-1. Official character sets for use on the Internet are registered by IANA (Internet Assigned Numbers Authority). IANA is the central registry for various Internet protocol parameters, such as port, protocol and enterprise numbers, options, codes and types. For a complete list of character-set values, see www.unicode.org/reports/tr22/index.html and www.iana.org/assignments/character-sets.
A character set is like an encoding-value in this context. However, character set is the term that is used to identify an encoding that is suitable for use on the Internet.

Details

An XML declaration is not required in all XML documents. Such a declaration is required only when the character encoding of the document is other than the default UTF-8 or UTF-16 and no encoding was determined by a higher-level protocol.
The ODSCHARSET option, in the LIBNAME statement for the XML engine, specifies the character set to use for generating an output XML document.

See Also

Conceptual Information:
Statements:
SAS XML LIBNAME Engine: User's Guide