emacs-devel
[Top][All Lists]
Advanced

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

Re: 23.0.60; Defaut encoding for XML files should be undefined (instead


From: Stefan Monnier
Subject: Re: 23.0.60; Defaut encoding for XML files should be undefined (instead of utf-8)
Date: Fri, 15 Feb 2008 23:03:18 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

>> When I'm opening an XML file that I've saved in iso-latin-1
>> encoding, it's not correctly opened if there is no header,
>> cookie or local variable telling about my encoding.
>> 
>> This is how it looks like, when opened, as it is read by default
>> as utf-8 (while being iso-latin-1):
>> <enumType name="test">
>> <pair value="11">D\373 \340 l'entreprise</pair>
>> <pair value="12">Stagiaire occup\351</pair>
>> <pair value="36">Autres</pair>
>> </enumType>

> My understanding is that the XML specification requires XML documents
> lacking an explicit <?xml encoding='foo'?> instruction to be UTF-8 or
> UTF-16, so Emacs does the right thing already.

The OP's file is *not* an XML document.  The XML document is generated
from various parts, including this file.  This is very similar to the
LaTeX \usepackage[XXX]{inputenc} which is only placd in the root file,
but not in the files included from that one.


        Stefan




reply via email to

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