From: David Kastrup <dak@gnu.org>
Subject: Re: Emacs utf-8 coding system
Date: Fri, 11 Feb 2005 16:12:12 +0100 [thread overview]
Message-ID: <x5fz03cer7.fsf@lola.goethe.zz> (raw)
In-Reply-To: m3oeer9m8a.fsf@cisco.com
John Russell <jorussel@cisco.com> writes:
> David Kastrup <dak@gnu.org> writes:
>
>> John Russell <jorussel@cisco.com> writes:
>>
>>> "Eli Zaretskii" <eliz@gnu.org> writes:
>>>
>>>>> From: Thomas Beresford <number18@spymac.com>
>>>>> Date: Fri, 24 Dec 2004 05:37:29 -0700
>>>>>
>>>>> I wanted to know how can I install the utf-8 coding system in my
>>>>> emacs 20.7.2, because when I use `M-x list-coding-systems' I don't
>>>>> get the utf-8 listed here.
>>>>
>>>> There was no support for UTF-8 in Emacs 20.x. Please upgrade to
>>>> Emacs 21.3, the latest version, to get that support.
>>>
>>> I have been trying to read .reg files which contain exports of parts
>>> of a windows registry in emacs, and all I get is junk. I've been
>>> told that this is because the registry is output in unicode.
>>> Notepad can read these and so can vim on linux. Is there any way I
>>> can view these types of files in emacs? Thanks.
>>
>> There was no support for UTF-8 in Emacs 20.x. Please upgrade to Emacs
>> 21.4, the latest version, to get that support.
>>
>> I doubt that 5-year old versions of vim can read the files in UTF-8,
>> either. Emacs 20.7 is just so last-millennium.
>
> I was not the original poster and am not using emacs-20.*. I just
> got emacs-21.4.1 yesterday and the reg file still looks like mostly
> control charaters. I tried C-x Ret f and a few encodings, but
> nothing seems to change
Well, of course it depends on the settings of your language
environment. utf-8 can't be detected reliably in all circumstances.
C-x RET f does not change the interpretations of the characters in
your buffer, but with what encodings they will get saved again.
You have to specify the coding system already when loading the file,
like with
C-x RET c utf-8 RET C-x C-f crap.reg RET
If you already loaded the file, you need to reload:
C-x RET c utf-8 RET C-x C-v RET
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2005-02-11 15:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-24 12:37 Emacs utf-8 coding system Thomas Beresford
2004-12-24 12:54 ` Eli Zaretskii
2004-12-26 20:10 ` Peter Dyballa
[not found] ` <mailman.8623.1103894379.27204.help-gnu-emacs@gnu.org>
2005-02-11 14:26 ` John Russell
2005-02-11 14:42 ` David Kastrup
2005-02-11 14:59 ` John Russell
2005-02-11 15:12 ` David Kastrup [this message]
2005-02-11 16:49 ` Thien-Thi Nguyen
2005-02-11 19:30 ` John Russell
2005-02-11 16:51 ` Eli Zaretskii
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=x5fz03cer7.fsf@lola.goethe.zz \
--to=dak@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).