CC: Tweaked

CC: Tweaked

57M Downloads

Special character not displaying as expected

B3N64 opened this issue · 0 comments

commented

Minecraft Version

1.20.x

Version

1.109.5 Fabric

Details

The characters in the following image are not displayed as expected when this command is executed with the character pasted in to it: term.write("�").
Unbenannt1

The character "�" = "\131"
Unbenannt2

My code:
term.clear()
term.setCursorPos(1, 1)
term.write((string.byte("�"))) -- prints 194 instead of 131
term.setCursorPos(1, 2)
term.write("|�|") -- prints "\194" and "\131" instead of just "\131"
term.setCursorPos(1, 3)
term.write("|\131|")
term.setCursorPos(1, 4)

Output:
Unbenannt