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: Re: recoding a buffer coding system Date: Sat, 15 Aug 2009 21:29:09 -0500 Message-ID: <87ab204hl6.fsf@uchicago.edu> References: <87zla29j5p.fsf@uchicago.edu> <833a7tk2hb.fsf@gnu.org> <87hbw9m9mb.fsf@uchicago.edu> <6F6305D2-A661-4DA3-A5BB-02EA10068BB5@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1250389800 10299 80.91.229.12 (16 Aug 2009 02:30:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Aug 2009 02:30:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 16 04:29:53 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 1McVVI-0001j1-Fd for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Aug 2009 04:29:52 +0200 Original-Received: from localhost ([127.0.0.1]:56443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McVVH-0000UZ-MR for geh-help-gnu-emacs@m.gmane.org; Sat, 15 Aug 2009 22:29:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1McVUu-0000Q3-BT for help-gnu-emacs@gnu.org; Sat, 15 Aug 2009 22:29:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1McVUo-0000PI-DA for help-gnu-emacs@gnu.org; Sat, 15 Aug 2009 22:29:27 -0400 Original-Received: from [199.232.76.173] (port=37588 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McVUo-0000PF-8F for help-gnu-emacs@gnu.org; Sat, 15 Aug 2009 22:29:22 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:43637 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 1McVUn-0007sV-Tk for help-gnu-emacs@gnu.org; Sat, 15 Aug 2009 22:29:22 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1McVUh-0001tg-BA for help-gnu-emacs@gnu.org; Sun, 16 Aug 2009 02:29:15 +0000 Original-Received: from adsl-75-34-186-138.dsl.chcgil.sbcglobal.net ([75.34.186.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Aug 2009 02:29:15 +0000 Original-Received: from mejia by adsl-75-34-186-138.dsl.chcgil.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Aug 2009 02:29:15 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: adsl-75-34-186-138.dsl.chcgil.sbcglobal.net User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:TY1tvxOFXfpSjVC6++yDGWnss1o= 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:67180 Archived-At: >> In the buffer *http www:wordreference.com:80* I see the character that >> firefox displays as "ü" (u with umlaut) as \303\274. >> >> When I try to copy >> and paste it here in this e-mail, however, it appears as: "ü" >> >> As I said, however, if I merely save and reopen the file, the >> characters get shown properly. > Me, working in GNU Emacs 23.1.50 and 22.3, see no octal codes, I only > see the bytes from the UTF-8 encoded umlauts etc. according to HTML > property "charset=utf-8." The buffer is in actual no encoding at all, > and so you're lucky that it's contents is saved as UTF-8! Therefore > no information is lost and obviously GNU Emacs uses the proper > encoding when it opens the *file* now. This is strange. I just installed emacs 23.0.60.1 (the emacs23 that comes with Ubuntu --called emacs-snapshot) and I find the same exact result: I still see the same \303\274 character for ü when I call: (switch-to-buffer (url-retrieve-synchronously "http://www.wordreference.com/deen/grun")) >> In case this is useful, in the buffer *http www:wordreference.com:80* >> the variable 'buffer-file-coding-system' is mule-utf-8 >> > > In the end? When you re-open a second time? No. In the beginning, before saving (Actually, I save and re-open the file with a different name). When I re-open the file, buffer-file-coding-system is utf-8-unix. > Maybe using > > (modify-coding-system-alist 'process "" 'utf-8) > > makes GNU Emacs handle the buffer, associated with no file and with > no process, more like it should... I haven't found the proper > setting! > I will try to use your suggestion, but this will entail going through the documentation and try to understand it. This weekend, unfortunately, I will not have the time to do so. Any further help is appreciated. Santiago.