Skip to main content

Character Encoding

UTF-8 Character Encoding

OSCAL uses UTF-8 character encoding. JSON and YAML files are always UTF-8 character encoded, but XML files must include an explicit UTF-8 encoding.

In XML, the first line in the example above ensures UTF-8 encoding is used. Other encodings are not allowed and will likelycould create unpredictable results in OSCAL tools.

To ensure In OSCAL XML content is processed as UTF-8 encoding, explicitly specify it on the first line of any OSCAL XML file a follows:


<?xml version='1.0' encoding='UTF-8'?>