From: David Kastrup <dak@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs refusing to switch to iso-latin-1
Date: Mon, 11 Feb 2008 17:38:32 +0100 [thread overview]
Message-ID: <8563wvwirb.fsf@lola.goethe.zz> (raw)
In-Reply-To: 878x1rk0hd.fsf@mundaneum.com
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
next prev parent reply other threads:[~2008-02-11 16:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-11 11:25 Emacs refusing to switch to iso-latin-1 Sébastien Vauban
2008-02-11 13:44 ` Peter Dyballa
[not found] ` <mailman.7278.1202737459.18990.help-gnu-emacs@gnu.org>
2008-02-11 14:54 ` Sébastien Vauban
2008-02-11 16:02 ` Peter Dyballa
2008-02-11 16:18 ` Peter Dyballa
2008-02-11 16:28 ` Sven Joachim
2008-02-11 16:38 ` David Kastrup [this message]
2008-02-11 16:55 ` Lennart Borgman (gmail)
[not found] ` <mailman.7290.1202748969.18990.help-gnu-emacs@gnu.org>
2008-02-12 12:11 ` Sébastien Vauban
2008-02-12 19:27 ` David Kastrup
2008-02-14 9:03 ` Sébastien Vauban
2008-02-14 20:58 ` Stefan Monnier
2008-02-15 9:09 ` Sébastien Vauban
2008-02-14 19:58 ` Stefan Monnier
2008-02-15 8:45 ` Emacs refusing to switch to iso-latin-1 (on the way to be SOLVED) Sébastien Vauban
[not found] ` <mailman.7285.1202745751.18990.help-gnu-emacs@gnu.org>
2008-02-12 11:27 ` Emacs refusing to switch to iso-latin-1 Sébastien Vauban
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8563wvwirb.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).