Skip to content

iTerm2 LC_CTYPE locale issue on SSH connections

Thanks for filing an issue! Please answer the questions below so I can help you.

Detailed steps to reproduce the problem:

  1. open iTerm
  2. connect via SSH to host
  3. type in some UTF8 characters -> they disappear or transformed into gibberish The same issue does not appear in macOS Terminal

What happened:

language gibberish

What should have happened:

proper encoded characters

Fix: the LC_CTYPE locale is not set correctly

in macOS Terminal LC_CTYPE="en_US.UTF-8"

in iTerm2 LC_CTYPE=UTF-8

exporting the correct one fixes the problem!

Screen_Shot_2017-01-17_at_12.58.56

Screen_Shot_2017-01-17_at_12.59.00