Notice the
However below.
You already have the necessary package included, the problem is that
ansi needs a codepage argument:
Code: Select all
interface stream
open core
domains
mode =
unicode;
ansi(codePage CP);
binary.
So an initialization could look like this:
Code: Select all
console::init(stream::ansi(codePageId::codePage_windows1251))
However a default console program has already initialized the console to
utf8 in the goal:
I think the best choice is
utf8 (old ASCII is a subset of utf8), but if you
must use another codepage you should write (with the codepage of your choice obviously):
Code: Select all
goal
console::run8(main::run, codePageId::codePage_windows1251).