Saturday, August 28, 2010

Re: vim can't display characters properly(in other languages besides english).....

On Aug 28, 1:17 am, aksr <aksr.1...@gmail.com> wrote:

> in other programs for text editing(notepad, notepad++,PSPad,
> UltraEdit) everything works as it should...
> --
> when i change the language to greek every char is displayed as
> questionmark
> every language is displayed bad, only english is displayed properly....
> (german, greek, russian, serbian cyrilic, )
> (i tried this on my PC and laptop...same (bad) result..)

(I only saw John Mathewman's response just as I was hitting Send on
this, so this is a bit redundant)

I am completely perplexed by encodings myself, so I hope someone else
can give you better help, but:

Could the problem be the font? Are you using the same font in vim
that you use with the other editors? I believe some fonts support
fewer unicode characters than others.
This page might be a helpful reference:
http://www.fileformat.info/info/unicode/font/

From what I can tell, your characters look fine in Consolas and
Courrier_new, on my system. (but I'm so stumped by encodings that I
keep getting nasty "conversion error" messages no matter what I do.)
Also, after you change the encoding, are you typing in, or pasting in,
new text, or just observing what happens to the text already in the
buffer? That can produce strange results, so make sure you check with
fresh text.

Good luck

B


On Aug 28, 1:17 am, aksr <aksr.1...@gmail.com> wrote:
> windows xp sp2
> latest vim (7.3)
> -------
> when i change the language for my keyboard(to serbian latin):
>
> if i put ":set encoding=latin1"
> then i get this:
> for chars(č,ć,š,đ,ž) i get(c,c,BS,d,BS): č-c, ć-c, š-(black square), đ-
> d, ž-(black square)
> ..and if i put ":set encoding=utf-8"
> i get, for all(čćšđž), "black squares"...
> other characters are displayed properly and layout(for the keyboard,
> when i change language) is fine..
> in other programs for text editing(notepad, notepad++,PSPad,
> UltraEdit) everything works as it should...
> --
> when i change the language to greek every char is displayed as
> questionmark
> every language is displayed bad, only english is displayed properly....
> (german, greek, russian, serbian cyrilic, )
> (i tried this on my PC and laptop...same (bad) result..)

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment