From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: changing encoding of buffer Date: Wed, 30 May 2007 06:22:29 +0300 Message-ID: References: <7rnqi4-vn5.ln1@ID-306968.user.individual.net> <88hui4-np6.ln1@ID-306968.user.individual.net> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1180495371 14943 80.91.229.12 (30 May 2007 03:22:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 May 2007 03:22:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 30 05:22:50 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HtEls-0002O0-A4 for geh-help-gnu-emacs@m.gmane.org; Wed, 30 May 2007 05:22:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HtElr-0004Ys-OC for geh-help-gnu-emacs@m.gmane.org; Tue, 29 May 2007 23:22:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HtEle-0004XD-Qp for help-gnu-emacs@gnu.org; Tue, 29 May 2007 23:22:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HtEld-0004W9-PR for help-gnu-emacs@gnu.org; Tue, 29 May 2007 23:22:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HtEld-0004W6-LP for help-gnu-emacs@gnu.org; Tue, 29 May 2007 23:22:33 -0400 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HtEld-0007V9-Bn for help-gnu-emacs@gnu.org; Tue, 29 May 2007 23:22:33 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-217-74.inter.net.il [83.130.217.74]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id GVQ91143 (AUTH halo1); Wed, 30 May 2007 06:22:32 +0300 (IDT) In-reply-to: <88hui4-np6.ln1@ID-306968.user.individual.net> (message from M G Berberich on Tue, 29 May 2007 23:06:48 +0200) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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: news.gmane.org gmane.emacs.help:44540 Archived-At: > From: M G Berberich > Date: Tue, 29 May 2007 23:06:48 +0200 > > > Use encode-coding-region to encode the region in windows-1252, then > > use decode-coding-region to decode it back as UTF-8. That's it! > > Thanks. It has to be: > > (encode-coding-region (point-min) end 'utf-8) > (decode-coding-region (point-min) end 'windows-1252) > > to work for me. That's strange: the function you showed that used recode did it the other way around, no?