Firstly, you want to check that your terminal has Unicode enabled. According to Ubuntu's locale help page, you should edit the file
/etc/default/locale to have this content:
en_US with your language, of course), and then run:
You may need to log out and log in again. Test by executing this (found here):
$ echo -e "\xE2\x98\xA0"
The output should be ☠.
Secondly, Powerline uses a few special glyphs in the Unicode Private Use Area, so you should read the docs on Fontconfig. The font installation requires 2 main steps:
- Put the font file
~/.fonts/ (or another X font directory)
- Put the font config file
10-powerline-symbols.conf in either
~/.config/fontconfig/conf.d/, depending on your fontconfig version (
~/.config/fontconfig/conf.d/ is newer, but I'm not sure since when it's available)