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
|
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.
|
|
UTF-8 without BOM (preferred for logs / redirected output).
|
Xanthos