2011/6/11 Ben Schmidt <[email protected]>: > It sounds like you are doing everything right. > > You are right, setting the encoding option is definitely an unwise move. > > A few questions to clarify things and perhaps pinpoint the problem: > > What do you see that demonstrates to you that it isn't working?
I see many question marks in my files and while reading the file vim is warning about bad characters. When I switch encoding variable everything looks ok (without question marks but with proper characters). > > Having fileencodings=utf-8,latin2 will only fall back to latin2 for text > that is not valid utf-8. Is this the case for your files? Did you set > the option before reading the file (e.g. in vimrc)? Yes, it's this case for my files. I try to open files written in latin2 encoding. I set the fileencodings option in my .vimrc > Where did you specify the ++enc=latin2 argument? On the commandline or > with the :e command within Vim? With the :e command. > What do you see after opening the file for > > :verbose set fenc? > > ? Perhaps that will give you a clue how fenc is being set. I'll check your advice with the :verbose set fenc command when I'll be at work at monday. > Ben. > I found something strange. I've written the same file on my ubuntu machine at home (with vim 7.3 of course). The file looks like this: ąśćłóńć and I wrote it using this command: :w ++enc=latin2 and then I quit vim and opened this file again having in my .vimrc: set fileencodings=utf-8,latin2 and it worked! I did the same thing in the same way in my fedora installation at work and it didn't work. Thank you anyway! Best regards, Karol Samborski -- 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
