Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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)?

share|improve this question

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
I've posted an answer on a similar question here: superuser.com/a/368269/109693 –  Cristian Adam Dec 15 '11 at 12:57
add comment

1 Answer 1

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.

share|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
add comment

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