0
I currently work on a project where I need to write the Unicode characters ɛ
and ħ
, which I just added to my keyboard.
It works great almost everywhere, even in the command prompt, except for Vim who displays a question mark ?
instead of ɛ
and h
instead of ħ
.
The encoding is set to utf-8 and using the :digraphs
isn't much of a help since even there, a lot of characters are shown simply as ?
.
What can I do to fix this ?
EDIT
I use the Consolas font which has both the aforementioned characters.
What about GVIM? Does it show those correctly? – Ingo Karkat – 2014-05-24T18:57:49.333
Nope, the same problem there too! – ahmed – 2014-05-24T18:59:58.460
1What are the values of
'fileencodings'
,'fileencoding'
,'encoding'
? – romainl – 2014-05-24T20:02:20.050usc-bom, no value and latin1, should I set them all to utf-8? – ahmed – 2014-05-24T22:41:11.693
UPDATE: I set all these params to utf-8 but nothing happened. – ahmed – 2014-05-24T22:50:29.610
UPDATE 2: after some verification, it seems like the characters a displayed as they're supposed to in GVim. Vim in the other is still stuck even though it has the same settings! – ahmed – 2014-05-25T00:21:34.627
@ahmed: The terminal has to be started in UTF-8 mode as well for console Vim to display UTF characters. Try setting your system language before you log into X. – Heptite – 2014-05-25T06:47:20.617
@Heptite: I don't think it's the terminal's fault as it displays those characters correctly. The problem only occurs when I launch Vim. Other command-line software (like Git) has no problem too. – ahmed – 2014-05-25T12:49:18.713
Is your console Vim and your gVim binary the same executable? If not, it's possible the console Vim binary is not built with UTF support. – Heptite – 2014-05-25T20:35:55.607
Yes, of course they're the same binary. – ahmed – 2014-05-25T20:38:42.677