From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Emacs refusing to switch to iso-latin-1 Date: Tue, 12 Feb 2008 20:27:00 +0100 Organization: Organization?!? Message-ID: <85hcgern5n.fsf@lola.goethe.zz> References: <87y79rohuu.fsf@mundaneum.com> <878x1rk0hd.fsf@mundaneum.com> <8563wvwirb.fsf@lola.goethe.zz> <87zlu6gyrt.fsf@mundaneum.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1202845338 22071 80.91.229.12 (12 Feb 2008 19:42:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2008 19:42:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 12 20:42:40 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JP11Q-0006vZ-7C for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Feb 2008 20:42:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JP10w-0001rQ-LD for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Feb 2008 14:41:58 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.astraweb.com!newsrouter-eu.astraweb.com!multikabel.net!newsfeed10.multikabel.net!tudelft.nl!txtfeed1.tudelft.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news.netcologne.de!newsfeed-hp2.netcologne.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:Or8XSrrho0tTyHo6wSOSo2Gz3YA= Original-Lines: 35 Original-NNTP-Posting-Date: 12 Feb 2008 20:27:03 CET Original-NNTP-Posting-Host: e2b813e9.newsspool4.arcor-online.net Original-X-Trace: DXC=0a5B7jmRWka]BlmkiiU@Bi4IUK\BH3YbM`\OTV5CU7k1_LiI6ENVam3>5MOK`; S:bhJlm204on\=2]k@fBb^9EQCcl Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:156086 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51464 Archived-At: Sébastien Vauban writes: > Hi, > >>>> BTW, here's a sample file (let's call it `test.xml') that >>>> exhibits the described problem: >>>> >>>> >>>> - Sélectionner - >>>> Dû à l'entreprise >>>> Stagiaire occupé >>>> Autres >>>> >>>> >>>> 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. > > I did not know about that. > > But, for me, this does not explain why my request to "use > iso-latin-1-unix for saving this buffer" is not respected. Because your file does not start with Is that so hard to understand? XML without such a header is encoded in utf-8, period. Any conforming XML interpreter will _barf_ if you were able to save in latin-1. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum