I installed airline and set my ~/.vimrc accordingly. but I get these Chinese glyph instead.
I use PragmataPro font.

well instead of those nice symbols I have Chinese glyphs. What is exactly wrong with my vim?
try set encoding=utf-8
Didn't change anything.
Should I put something somewhere else. like a fontconfig file in my home directory. If yes please tell me exactly what?
echo -e "\xE2\x98\xA0" returns ☠.
are you using a powerline font? https://github.com/Lokaltog/powerline-fonts
PragmataPro; and it is my understanding that this font is built with those glyphs from the get go.
does :echo "\ue0b2" print a powerline arrow?
No the Chinese symbol
OK, so the font is problematic - you can try with a different one. Also you can try changing your terminal settings regarding something like "doube-width characters"
What you mean about the font being problematic? (should I patch the font with font patcher?)
explain the option regarding "double-with characters" please!
For starters, check if you observe the issue with any of these fonts https://github.com/Lokaltog/powerline-fonts
Well yes that was the font problem. I did a patch ( https://github.com/Lokaltog/powerline-fontpatcher) on the PragmataPro.ttf font that I have and now I get this:

Is my patcher script out of date or what?
I have no way to tell if your patcher is outdated. Check out these docs https://powerline.readthedocs.org/en/latest/fontpatching.html
I used exactly that but you could see the result!
PragmataPro claims to include powerline symbols out-of-the-box http://www.fsd.it/fonts/pragmatapro.htm#.U7ut96ifJFQ Strange that it's not working...
Maybe you need to get the "complete" version
I don't want to pay another 120$ for a set. please let me know, if you or anyone else find a way.
unfortunately, there's not much we can do to help here besides recommending that you try again or use a different font.
This problem can be fixed by adding the following line to your vimrc:
let g:airline_powerline_fonts=1
This solved the issue for me using Essential PragmataPro.
(Hope maintainers would forgive me commenting on this closed issue)
I do encounter the exact problem a while ago, with the Chinese characters clobbering the nice symbols one should have, even after installing patched font. While @bling 's suggestion worked, there is one caveat:
set encoding=utf-8
MUST be specified before
let g:airline_powerline_fonts=1.
Order is important in vim config. For reason I haven't investigated, under default encoding used in Windows (which is probably multibyte codepage under original reporter's environment), system fallback multibyte font would be looked up instead of the patched font.
Well, in general, setting encoding always has to be the very first item in your .vimrc, because this will possibly invalidate all strings in the Vim core, e.g. registers, variables and similar.
Most helpful comment
This problem can be fixed by adding the following line to your
vimrc:let g:airline_powerline_fonts=1This solved the issue for me using Essential PragmataPro.