[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: utf-16 not auto-detected when finding file
From: |
David Hunter |
Subject: |
Re: utf-16 not auto-detected when finding file |
Date: |
Wed, 30 Mar 2005 00:20:28 -0500 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) |
Dave Love wrote:
Kenichi Handa <address@hidden> writes:
I think it's possible to detect utf-16 by using heuristics
with high accuracy. I'll try it in emacs-unicode.
Yes. Perhaps someone knows exactly what Windows does (assuming the
only significant use of it is in Windows)?
Exactly what Windows does for what? Recognizing a utf-16 registry file when
opened in the registry editor?
If they have common name or extension, we can add it in
file-coding-system-alist. Do they?
As far as I remember, .reg is a recognized extension which invokes
regedit, but I don't know whether it would be correct or particularly
useful to add .reg.
I don't recommend binding .reg to a single encoding. All Windows registry
files use the .reg extension, but there are two formats. For Windows NT and
older, registry files are encoded in the OS's locale-specific character set
(for English, cp1252). For Windows 2000 and newer, registry files use utf-16.
-Dave
- utf-16 not auto-detected when finding file, Dave Love, 2005/03/13
- Re: utf-16 not auto-detected when finding file, Kenichi Handa, 2005/03/15
- Re: utf-16 not auto-detected when finding file, Dave Love, 2005/03/24
- Re: utf-16 not auto-detected when finding file, Kenichi Handa, 2005/03/25
- Re: utf-16 not auto-detected when finding file, Dave Love, 2005/03/25
- Re: utf-16 not auto-detected when finding file, Kenichi Handa, 2005/03/27
- Re: utf-16 not auto-detected when finding file, Dave Love, 2005/03/29
- Re: utf-16 not auto-detected when finding file,
David Hunter <=
- Re: utf-16 not auto-detected when finding file, Jason Rumney, 2005/03/30
- Re: utf-16 not auto-detected when finding file, Kenichi Handa, 2005/03/30
- Re: utf-16 not auto-detected when finding file, Jason Rumney, 2005/03/30
- Re: utf-16 not auto-detected when finding file, Kenichi Handa, 2005/03/30