[Top][All Lists]
[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
Re: 23.0.60; Defaut encoding for XML files should be undefined (instead of utf-8),
Stefan Monnier <=
- Re: 23.0.60; Defaut encoding for XML files should be undefined (instead of utf-8), Stephen J. Turnbull, 2008/02/16
- Re: 23.0.60; Defaut encoding for XML files should be undefined (instead of utf-8), Jason Rumney, 2008/02/16
- Re: 23.0.60; Defaut encoding for XML files should be undefined (instead of utf-8), Stephen J. Turnbull, 2008/02/16
- Re: 23.0.60; Defaut encoding for XML files should be undefined (instead of utf-8), Lennart Borgman (gmail), 2008/02/16
- Re: 23.0.60; Defaut encoding for XML files should be undefined (instead of utf-8), Stephen J. Turnbull, 2008/02/16
- Re: 23.0.60; Defaut encoding for XML files should be undefined (instead of utf-8), Lennart Borgman (gmail), 2008/02/17
- Re: 23.0.60; Defaut encoding for XML files should be undefined (instead of utf-8), Stephen J. Turnbull, 2008/02/17
- Re: 23.0.60; Defaut encoding for XML files should be undefined (instead of utf-8), Miles Bader, 2008/02/17
- Re: 23.0.60; Defaut encoding for XML files should be undefined (instead of utf-8), Stephen J. Turnbull, 2008/02/17
- Re: 23.0.60; Defaut encoding for XML files should be undefined (instead of utf-8), Miles Bader, 2008/02/17