Christian Ebert wrote:
[...]
My terminal font has the necessary glyphs as well. That's not the
problem.

I can read your homepage fine with w3m console text browser.

My terminal displays utf just fine. The following:

#v+
Vögel <- utf-8

Vögel  <- latin1
#v-

*only* happens when I insert latin1 (the last line) in an
otherwise utf file.  Then Vim (not my terminal) decides to
represent latin1 correctly but not utf. I want it the other way
round.
[...]

Vim displays it as Latin1 because your file is not a valid UTF-8 file. You can try to circumvent it as follows:

1. Make sure that 'encoding' is set to UTF-8
        :verbose set encoding?

2. Load the file, forcing Vim to read it in UTF-8.
        :e ++enc=utf-8 filename.tex

3. Set a BOM at the head of the file so it will be read as UTF-8 next time
        :setlocal bomb

4. Check that 'fileencodings' starts with "ucs-bom"
        :verbose set fileencodings?

"Vögel" (Latin1) should then display as "V<F6>gel"

But I repeat: you're breaking the rules.


Best regards,
Tony.

Reply via email to