From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Santiago Mejia Newsgroups: gmane.emacs.help Subject: recoding a buffer coding system Date: Fri, 14 Aug 2009 16:31:46 -0500 Message-ID: <87zla29j5p.fsf@uchicago.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250285558 27429 80.91.229.12 (14 Aug 2009 21:32:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Aug 2009 21:32:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 14 23:32:31 2009 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 1Mc4Nu-0000WE-4L for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Aug 2009 23:32:26 +0200 Original-Received: from localhost ([127.0.0.1]:36553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mc4Nt-0000kg-HW for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Aug 2009 17:32:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mc4NY-0000kL-T7 for help-gnu-emacs@gnu.org; Fri, 14 Aug 2009 17:32:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mc4NU-0000hH-7E for help-gnu-emacs@gnu.org; Fri, 14 Aug 2009 17:32:04 -0400 Original-Received: from [199.232.76.173] (port=59910 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mc4NU-0000hE-1P for help-gnu-emacs@gnu.org; Fri, 14 Aug 2009 17:32:00 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:36821 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mc4NT-00053k-K9 for help-gnu-emacs@gnu.org; Fri, 14 Aug 2009 17:31:59 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Mc4NK-00035S-Jy for help-gnu-emacs@gnu.org; Fri, 14 Aug 2009 21:31:50 +0000 Original-Received: from wireless-224-197.uchicago.edu ([128.135.224.197]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Aug 2009 21:31:50 +0000 Original-Received: from mejia by wireless-224-197.uchicago.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Aug 2009 21:31:50 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: wireless-224-197.uchicago.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:X8MVYOdUO0vomXiudGex9bI5UNw= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:67149 Archived-At: I am trying to make a script that downloads a webpage and reformats it into enriched-mode. I have managed to successfully reformat the raw html tags into enriched-mode tags. However, when I try to display the buffer in enriched-mode (by using (format-decode-buffer 'text/enriched)), some of the non-ASCII characters get screwed up (German umlauts, to be precise). I have managed to solve the issue through a nasty trick: saving the file, killing the buffer, and reopening the file. But this is a trick that I would like to avoid. Any ideas as to how to do it? Santiago.