Thursday, July 2, 2009

SSH, backspace and UTF-8

Just great. If you use UTF-8 characters encoded on more than 1 byte (such as Latin diacritics, Armenian, Japanese etc. characters) and you attempt to hit [backspace] through SSH to delete them, you might be surprised to find out that backspace in SSH only deletes the last byte.

This can lead to a lot of unexpected results in your documents and it can generate a lot of confusion for any app you might be running via SSH.