Hi, fellow vimmers,

I' struggling for quite a while now to get the character encoding right; I'd 
like vim to guess right, or at least to know which magical comment I could use 
to force vim to use the correct encoding settings. This is an everyday problem 
to me, since I work on Windows (different encoding conventions for GUI and 
shell programs!) as well as several Linux machines which are slightly 
differently configured.

Via our web-based bugtracker, I created an example file (attached) which 
contains german umlauts and their Javascript and HTML encodings and should look 
like this:

<snip>
ä       %E4     &auml; (auml)
ö       %F6     &ouml; (ouml)
ü       %FC     &uuml; (uuml)

Ä       %C4     &Auml; (Auml)
Ö       %D6     &Ouml; (Ouml)
Ü       %DC     &Uuml; (Uuml)

ß       %DF     &szlig; (szlig)
</snip>

(to cover the case the webmail interface scrambles the HTML entities I repeated 
them in the 4th column without the &amp; and ;)

The umlauts are displayed correctly when I open the file with WinXP's notepad 
(which in turn doesn't like the *IX line endings), but vim doesn't get them 
right (Bram's Vim 7.0 on a german WinXP prof, +multi_byte_ime/dyn).

Is there something I can do to make vim guess right, at the very least for this 
document?

Thanks a lot in advance!
-- 
Tobias

Attachment: msg2308
Description: Binary data

Reply via email to