Special character codes are displayed in the Terminal for diacritics when connecting to an Ubuntu Server When I connect to an Ubuntu Server (ssh) and I try to see some text in the Terminal form the remote server, I get character codes instead of the appropriate text with diacritics.

for example for a git log on the server I get:



Author: Ionic&lt;C4&gt;&lt;83&gt; Biz&lt;C4&gt;&lt;83&gt;u &lt;bizauionica@...&gt;


instead of:

Author: Ionică Bizău &lt;bizauionica@...&gt;


When I do git log on my local machine in the Terminal, I get the correct diacritics.

I have no idea in which category this issue falls:


Terminal
bash
ssh
Ubuntu
git


I initially asked Ubuntu for this issue but they redirected me here.

Any ideas?
The LC_ALL variable having an empty value was causing the problem.

So the solution of this problem can be found on SO here:

On mac, the LC_ALL variable is not set by default. So writing:

export LC_ALL=en_US.UTF-8  


in your ~/.bash_profile fixes the problem. I assume that You have a default SSH config that has LC_* in the SendEnv configuration.