4 ms·
Plain text in what encoding, with what character set? We start adding implementation details and suddenly it's not as straightforward.
by partycoder 9y ago
Plain text in what encoding, with what character set? We start adding implementation details and suddenly it's not as straightforward.
- PawelDecowski 9y agoUTF-8, Unicode.
- jancsika 9y agoAnd how do you represent line breaks?
- davidsong 9y agoCRLF unless your audience mostly use Mac or Linux.
- zlynx 9y agoIt seems to me the only thing on Windows that cares about CRLF is Notepad. Everything else works fine with just LF. A lot of new Windows software even seems to ship with LF format configuration files. Especially games, probably because it is so common to have a Windows game with Linux backend servers, so the developers are working with both. So anyway, I'd go with just LF unless your software is Windows only.
- nvader 9y agoFor most users, you press enter/return on your keyboard. A lot of text editors will detect line endings when opening a file and use that going forward.
- partycoder 9y agoWhat if you are using another encoding that already works for you? Same as real life alphabets and such?