mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-28 11:26:19 +01:00
data_text_to_utf8() turns a text read from a data file into utf-8: one which already is valid utf-8 stays, any other is read as windows-1250, the whole code page (win1250_to_utf8() knows the polish letters only, and utf8_to_win1250() counts on that, so the two stay as they are). A windows-1250 text which is valid utf-8 by chance (two capital letters with marks in a row) is told by what it would decode to. data_name_to_utf8() is the same for a name shown in one line: control characters and, when asked, underscores become spaces, as Bezogonkow() has them, but the letters keep their marks. utf8_length() and utf8_fit() count, cut and fill by characters, for the columns of a fixed width. Nothing uses them yet (MaSzyna-EU07/maszyna#94).
5.7 KiB
5.7 KiB