mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 22:55:29 +00:00
File › Place of a text file with the Unicode character set read UTF-16 only after a byte-order mark. Without one, UTF-16 text was read as UTF-8 (or the 8-bit set): characters outside U+0001 to U+00FF came out as other characters, and each CR LF placed as two paragraph breaks. Place now reads a file without a byte-order mark as UTF-16 by the rule Import Data Sets uses, through the shared byte-order helper: an even length, at least half of the two-byte units holding a NUL byte, the byte order that reads a line break (for one line, the order its NUL bytes give), and valid UTF-16 with no NUL character in that order. Any other file is read as before, as UTF-8 or else the platform's 8-bit set. Docs: docs/mcp.md, file.place params text, docs/target-app-parity.md.