dfhack icon indicating copy to clipboard operation
dfhack copied to clipboard

dfhack console on windows does not handle cp 65001 correctly

Open ab9rf opened this issue 6 years ago • 0 comments

I have my default console code page set to 65001 (UTF-8); however, the DFHack console on Windows appears to assume code page ~~1252~~ 437 and thus does not properly display characters outside the Basic Latin block (0x00 through 0x7f) when the code page is set to UTF-8. These arise fairly frequently in DF names, and at least one plugin uses the gender markers ♂ and ♀. The characters in names typically do not render at all, while the gender markers render as a replacement character.

Possibly relatedly, trying to paste a UTF-8 character outside of the Basic Latin block into the DFHack console when the console code page is set to 65001 causes the dfhack console to close, although without crashing DF itself.

ab9rf avatar Nov 27 '19 15:11 ab9rf