Header menu logo Xanthos

ConsoleEncoding Module

UTF-8 helpers for console apps and test harnesses. Xanthos treats all in-memory text as Unicode strings (UTF-16). JV-Link boundaries decode CP932/Shift-JIS into those strings, and output boundaries should emit UTF-8.

Functions and values

Function or value Description

configureUtf8 ()

Full Usage: configureUtf8 ()

Parameters:
    () : unit

Best-effort: configure stdout/stderr/input to use UTF-8. - Works for redirected output (pipes) and most modern Windows consoles. - Errors are swallowed to avoid crashing when no console is attached.

() : unit

utf8NoBom

Full Usage: utf8NoBom

Returns: UTF8Encoding

UTF-8 without BOM (preferred for logs / redirected output).

Returns: UTF8Encoding

Type something to start searching.