Possible Duplicate:
Using Romanian keyboard with gVim

I'm using Vim 7.3 in Windows 7, with the keyboard set to Romanian (Programmers). In the console and any other program, right-alt + s generates ș (s with comma below). In Vim it generates a question mark. Can anyone explain why? And what can I do to have Vim recognize this character (and t with comma below)?

link|improve this question
I've posted an answer on a similar question here: superuser.com/a/368269/109693 – Cristian Adam Dec 15 '11 at 12:57
feedback

closed as exact duplicate by RedGrittyBrick, Ivo Flipse Dec 15 '11 at 13:28

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

I'm not familiar with Vim, but I'm sure it can handle Unicode properly. The problem might be font related. If the font used by Vim does not support the Romanian charset, you get ? on the screen (even though, internally the correct character is stored).

You can verify this by copying the question mark from Vim and pasting it into another program that can can display such characters. If it's shown correctly, the culprit is Vim's font.

link|improve this answer
I'm using Consolas, it can display those characters correctly (I opened in Vim a file created in Notepad with all the Romanian diacritics). And the character inserted when I type in Vim is really an ASCII question mark, not some other character missing in the font. – Victor Grigoriu May 31 '11 at 15:38
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.