Improved: OxEdit/OxMetrics saving: if upper ascii or unicode characters are present in the document:
save as UTF-8 with BOM (previously only if unicode characters > 0xFF=255 were found).
Problem with println("S\xF8ren"); and println("Søren");
When making the file UTF-8 (by adding some unicode in comment), the output appears properly
in OxEdit/OxMetrics (but not on the Windows console, because that cannot handle UTF-8).
- On the Windows console: depends on the active code page (chcp).
- in OxEdit: skips quite a bit of output after that.
Can make the Windows console UTF-8 by using chcp 65001 and the Lucinda Console font, then correct in both.
So best solution is for OxEdit/OxMetrics to treat all files with upper ASCII as UTF-8, not just
files with characters > 0xFF.
OxEdit/OxMetrics needs to distinguish:
- ASCII (<=0x7F)
- ANSI (<=0xFF)
- UTF-8 with BOM, default to ASCII if no chars >0x7F found
- UTF-8 without BOM, need to autodetect upon load
- others only with BOM