- On 30/09/09 17:07, Doris Wagner wrote:
>Ox9A is not an o-umlaut in Latin1 or UTF-8: in Latin1 it is the control
> hi list,
> I am using vim from the terminal (mac os 10.5); I often use german
> now, when I write the umlaut ö with another editor, in my case with
> texshop, and open the file with vim, there ist no ö displayed, but
> apparently, something with the encoding is wrong;
> my .vimrc-settings are as in
> recommended, that is:
> set encoding=utf-8
> set fileencoding=
> setglobal fileencoding=utf-8
> set fileencodings=ucs-bom,utf-8,latin1 set termencoding=latin1
> so can anyone help me?
character SCI (Single Character Introducer), and in UTF-8, the
_codepoint_ U+009A (encoded on disk as 0xC2 0x9A) is the same control
character, while the _byte_ 0x9A can only be the second or further byte
of a multibyte sequence.
I suspect that Texshop is using macroman as its encoding, but only you
can ascertain that, by trial and error, as follows (in Vim):
(in the vimrc)
if &enc !~? '^u'
if &tenc == ""
let &tenc = &enc
" the following is optional
" (check the help before uncommenting)
setg bomb fenc=latin1
(at the keyboard)
:e ++enc=macroman filename.enc
replacing "filename.enc" by the filename, of course. (You may want to
have pre-recorded, using Texshop, a "test file" containing as many
non-ASCII different characters as you can dream of.)
If it still isn't that, you'll have to try other charsets (Windows-1252,
maybe?) as the argument of the ++enc modifier.
See ":help ++opt"
Rule of the Great:
When people you greatly admire appear to be thinking deep
thoughts, they probably are thinking about lunch.
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php