A friend of mine sent me text file containing some special glyphs I can't seem 
to get to display right on my system. We both use Vim 7.2. The main difference 
is that I have Vim (vim-gtk) installed on Kubuntu 9.04  whereas he has the 
default windows executable downloaded and configured under WinXp. I have 
encoding set to utf-8, he uses latin-1 as the default.

Let's take the • characters as an example, which are displayed as <95> on my 
screen. When I do 'ga' on that glyph, I get: 
<<95>> 149, Hex 0095, Octal 225

I figured out by googling that this character does not belong to Latin‑1 
character set. It is part of the Windows-1252 character set and can be used 
with most Windows applications, including MS Word. 
(http://www.danshort.com/ASCIImap/indexhex.htm).

I've also tried a dozen different default fonts shipped with Kubuntu to see if 
they fix the issue and even installed the same font (Consolas.ttf) he uses with 
no luck.

'Fileencodings' setting in my gvimrc is set as: set 
fileencodings=ucs-bom,utf-8,latin1
When I do :fileencoding? after have opened the file, I get latin1 as should.

I know these encoding issues are complicated and have fought for hours to 
understand them and get my system to display the characters right but in vain. 
So finally decided to ask from here how to get those special characters to 
display right.

Any insights appreciated.

And a snippet of the file in question is here: 
http://iki.fi/~pyyhttu/temp/AE.txt

-- 
Tuomas

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to