David Woodfall wrote:
I have a bit of a problem with encoding. A particular file (made in windows
btw) shows characters wrong in vim, but ok in gvim. Example:
¹²³€
(made by holding alt-gr key and typing 1234).
Gvim shows encoding as utf-8 as does vim, so I thought maybe it was a
problem with my terminal (mrxvt) but in Irssi I have set char-set as cp1252
and these characters show correctly in my term. CP1252 doesn't appear to be
an option in vim though. Also the pound £ sign doesn't show correctly.
Any ideas how to get around this problem?
When setting "Character Encoding" to UTF-8 in my mailer, I see your first
string as ¹²³€ i.e. (exponent 1)(exponent 2)(exponent 3)(Euro sign) and I see
your pound sign as -- well, a pound sign: £
Even if your 'encoding' is set to UTF-8, you can read and write files in any
other encoding. For instance:
:e ++enc=cp1252 filename
for Windows-1252. In that case ":setlocal fenc?" will answer "
fileencoding=cp1252".
see ":help ++opt"
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
34. You laugh at people with 14400 baud modems.