[Contributing] Officially decide on UTF-8 as the default encoding

It's been like this since the beginning, I just hadn't written it down.
So yeah, sorry to everyone who likes to edit code in period correct
90's DOS terminal editors.

Part of P0141, funded by [Anonymous] and rosenrose.
This commit is contained in:
nmlgc 2021-05-22 16:08:41 +02:00
parent 3e2104a164
commit 2406533713
1 changed files with 10 additions and 0 deletions

View File

@ -50,6 +50,16 @@ These cases should gradually be removed as development goes along, though.
## Compatibility
* Despite the games' native encoding being Shift-JIS, most files should be
encoded in UTF-8, as it's simply more comfortable to work with in modern
tools. The only (necessary) exceptions are
* the big .ASM dump files in the root directory,
* and any files in the per-game `shiftjis/` subdirectory. All hardcoded
Shift-JIS strings should be put there. With files full of Shift-JIS text,
it's also easier to see when an editor didn't recognize the encoding,
which keeps the annoyance from accidentally destroyed files to a minimum.
* Use `__asm` as the keyword for inline assembly. This form works in Borland
C++, Open Watcom, and Visual C++, which will ease future third-party ports.