title: "setlocale: LC_CTYPE: cannot change locale (UTF-8)" when connection to AWS EC2 servers with MacOS/iTerm2/ZSH
body: <p>There are numerous related questions, but none of the answers solve this specific case:</p>
  <p>I am on MacOS, using iTerm2 and ZSH.</p>
  <p>Any AWS EC2 instance with the Amazon image (and maybe others) will show me that line when connecting to them with SSH:</p>
  <blockquote>
  <p>setlocale: LC_CTYPE: cannot change locale (UTF-8)</p>
  </blockquote>
  <p>The common answer to this problem seems to be a fix on the server. But this is not what I am looking for, I would like a fix on the client (since we create and destroy EC2 instances quite regularly).</p>
  <p>I've tried to add this to my .zshrc file:</p>
  <blockquote>
  <p>export LC_CTYPE=UTF-8</p>
  </blockquote>
  <p>ihinking that if it is already set to that locale, it won't complain. But that didn't work.</p>
  <p>In iTerm2, there is an option:</p>
  <p><a href="https://i.stack.imgur.com/p3Q80.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p3Q80.png" alt="enter image description here" /></a></p>
  <p>I tried to disable that, but no change as well.</p>
  <p>How can this be fixed?</p>