Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 was marked as an exact duplicate of an existing question.

I've posted an answer on a similar question here: – Cristian Adam Dec 15 '11 at 12:57

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

Not the answer you're looking for? Browse other questions tagged .