I have configured my terminal on OSX to show emoji properly. When I open up a terminal I can type and see emoji properly. My locale settings for OSX are shown below. When I start a tmux session it works fine as well.
However, when I start up an ssh session to my Ubuntu server emoji is shown as a strange digit. Locale settings for Ubuntu ssh session are also shown below.
I am wondering why this is and how I can fix it. I am using Droid Sans Mono for Powerline as the font in my terminal. OSX version is El Capitan and the version of Ubuntu on my server is 14.04 LTS.
OSX locale
dino :: locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
Linux locale (via ssh session)
testarossa :: ~ %locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
Best Answer
The value of
TERM
is irrelevant. What does matter is the terminal emulator (and also the version of glibc). See for example my comments in Debian #790847:while (I cannot verify at the moment), Ubuntu 14.04 is likely old enough that the problem which I noted later, in glibc is relevant: