[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coding problem with Euro sign

From: David Hansen
Subject: Re: Coding problem with Euro sign
Date: Thu, 15 Dec 2005 11:43:33 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

On Wed, 14 Dec 2005 11:04:05 +0100 Ralf Angeli wrote:

> * Ralf Angeli (2005-12-14) writes:
>> * David Hansen (2005-12-14) writes:
>>>   file code: 0xFC (encoded by coding system windows-1252-unix)
>> Argh, yes, that was the problem.  Not so much a typo, I simply used
>> the wrong coding system.  Thanks for setting me right (twice).
> Now that this is settled, would it be possible for Emacs to figure out
> the right coding system by itself in the case at hand?  That means
> without me having to specify coding systems explicitely by means of
> preferred coding system options, coding cookies, or `C-x RET c' and
> similar.

Actually i don't know exactly how emacs chooses the coding.  This
seems to work for me but may break other stuff and you may want
to move the utf-8 line up if you prefer latin-1 over utf-8.

(prefer-coding-system 'latin-1)
(prefer-coding-system 'latin-9)
(prefer-coding-system 'windows-1252)
(prefer-coding-system 'utf-8)

But I would avoid the use of windows-1252 coding and just use a
tool like iconv to convert such files to utf-8 or latin-9.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]