Correcting your character encoding in Milliways

Sometimes someone in Milliways will type something that your terminal emulator can't cope with. This is usually caused by your terminal emulator not being set to use the same character set as the Milliways program.

PuTTY's default character encoding is ISO 8859-1, also known as Latin1. This is a Western European character encoding containing characters for e.g. French and German, as well as the pound sign. Milliways, on the other hand (or more specifically your shell session), by default uses the UTF-8 character encoding, which is an encoding of Unicode, the unified character set. Milliways quite frequently encounters the pound sign, and this will get screwed up if your terminal receives it as UTF-8 but interprets it as Latin1. You will also simply lose any characters in UTF-8 which can't be translated into Latin1.

To fix this in PuTTY, open the window menu (which has some extra entries) and select 'Change settings...':

PuTTY window menu

This brings up a dialogue box similar to the one you get when you first run PuTTY (sans options that can only be changed before the connection is made). Select 'Translation' and pick 'UTF-8' from the combo box labelled 'Received data assumed to be in which character set':

PuTTY configuration dialogue box

Now click 'Apply', and any more weird characters should be displayed correctly (assuming you have appropriate fonts installed).

Page last modified by dez on Fri, 11 Sep 2015 22:23:36 +0100