From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Emacs utf-8 coding system Date: Fri, 11 Feb 2005 16:12:12 +0100 Organization: Organization?!? Message-ID: References: <20041224123729.8A68B4C0AA@webmail2.spymac.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1108135099 21839 80.91.229.6 (11 Feb 2005 15:18:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Feb 2005 15:18:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 11 16:18:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CzcYf-0006xA-00 for ; Fri, 11 Feb 2005 16:18:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Czcnc-0000hE-QX for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Feb 2005 10:33:40 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news-FFM2.ecrc.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 51 Original-X-Trace: individual.net Znb51MxySHhYkppUddxPggZ5c5cEs18aqHWz5t8QSGiV7s4H75 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.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:2iPCURaccjU3+c0e6dO8cXk1zLg= Original-Xref: shelby.stanford.edu gnu.emacs.help:128497 Original-To: help-gnu-emacs@gnu.org 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: main.gmane.org gmane.emacs.help:24029 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24029 John Russell writes: > David Kastrup writes: > >> John Russell writes: >> >>> "Eli Zaretskii" writes: >>> >>>>> From: Thomas Beresford >>>>> 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