From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: prad Newsgroups: gmane.emacs.help Subject: Re: foreign characters Date: Mon, 07 May 2012 20:49:47 -0700 Message-ID: <87pqaf8h7o.fsf@psinom.home> References: <87aa1jfyuo.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1336449014 24401 80.91.229.3 (8 May 2012 03:50:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 May 2012 03:50:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 08 05:50:12 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SRbRD-0006N3-Rg for geh-help-gnu-emacs@m.gmane.org; Tue, 08 May 2012 05:50:11 +0200 Original-Received: from localhost ([::1]:53351 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRbRD-0005yw-2w for geh-help-gnu-emacs@m.gmane.org; Mon, 07 May 2012 23:50:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRbR7-0005wh-9g for help-gnu-emacs@gnu.org; Mon, 07 May 2012 23:50:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRbR5-0000G5-7P for help-gnu-emacs@gnu.org; Mon, 07 May 2012 23:50:04 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:32937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRbR5-0000Es-0m for help-gnu-emacs@gnu.org; Mon, 07 May 2012 23:50:03 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SRbR1-0006Ky-2X for help-gnu-emacs@gnu.org; Tue, 08 May 2012 05:49:59 +0200 Original-Received: from s0106000acd1d509c.du.shawcable.net ([70.67.174.161]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 May 2012 05:49:58 +0200 Original-Received: from prad by s0106000acd1d509c.du.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 May 2012 05:49:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: s0106000acd1d509c.du.shawcable.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:BK4WHYRMQP0jEV3qjIYVhonMLz4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84765 Archived-At: "Pascal J. Bourguignon" writes: > prad writes: > >> what can i do to have emacs substitute the correct letter representation >> instead of looking at \351? > > 1- ask the remote to send you UTF-8. It's the de-facto norm. > > 2.1- save the file as raw-text: C-x RET c raw-text reT C-x C-w file.txt RET > 2.2- kill the buffer. C-x k > 2.3- open the file in the right encoding: C-x RET c RIGHT-ENCODING C-x C-f file.txt RET > > Now the problem of course is to know what's the right encoding! :-) > There are a lot of encodings where \351 <-> иж. But you may try > iso-8859-1 to start with. (That said they don't use iso-8859-1 on > MS-Windows). > thx for all this pascal! i didn't know about any of this stuff. thx to you too peter because i tried some of the encoding you'd sent as well as what's above. so i'm in much better shape now and am understanding this area more than i did before. -- in friendship, prad