Function libyml::api::yaml_emitter_set_unicode

source ·
pub unsafe fn yaml_emitter_set_unicode(
    emitter: *mut YamlEmitterT,
    unicode: bool,
)
Expand description

Set if unescaped non-ASCII characters are allowed.

This function sets whether the emitter should allow unescaped non-ASCII characters in its output.

§Safety

  • emitter must be a valid, non-null pointer to a properly initialized YamlEmitterT struct.
  • The YamlEmitterT struct and its associated data structures must be properly aligned and have the expected memory layout.