help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Emacs refusing to switch to iso-latin-1


From: David Kastrup
Subject: Re: Emacs refusing to switch to iso-latin-1
Date: Mon, 11 Feb 2008 17:38:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Sébastien Vauban <zthjwsqqafhv@spammotel.com> writes:

> Hi Peter,
>
>>> I told emacs to save the file in `iso-latin-1-unix', with
>>> `C-x <RET> f iso-latin-1-unix'. [...]
>>> But, when I do my `C-x C-s', just after it's done, I see back
>>> `-U:--' in my modeline.
>>
>> And what happens with `C-x <RET> c', i.e. encoding for next
>> command, and you save the before changed buffer?
>
> Good idea... Thanks.
>
> Unluckily, it does nothing, just telling me:
>
>     (No changes need to be saved)
>
> BTW, here's a sample file (let's call it `test.xml') that
> exhibits the described problem:
>
>     <enumType name="test">
>       <pair value="0">- Sélectionner -</pair>
>       <pair value="11">Dû à l'entreprise</pair>
>       <pair value="12">Stagiaire occupé</pair>
>       <pair value="13">Autres</pair>
>     </enumType>
>
> Thanks for your help!

Huh?  That file does not contain an encoding header, and so according to
the XML standard, it _has_ to be encoded in utf-8.  Emacs gets this
right.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

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