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: encoding Date: Thu, 08 Jan 2009 06:27:00 +0200 Message-ID: References: <16d25a74-0f05-4367-9314-6ed7784113be@s9g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1231388849 15217 80.91.229.12 (8 Jan 2009 04:27:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Jan 2009 04:27:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 08 05:28:40 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 1LKmVc-0007q1-FT for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jan 2009 05:28:40 +0100 Original-Received: from localhost ([127.0.0.1]:39765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKmUM-0005DW-DW for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Jan 2009 23:27:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LKmU2-0005DC-Rr for help-gnu-emacs@gnu.org; Wed, 07 Jan 2009 23:27:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LKmU2-0005Cn-1e for help-gnu-emacs@gnu.org; Wed, 07 Jan 2009 23:27:02 -0500 Original-Received: from [199.232.76.173] (port=43314 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKmU1-0005Ci-SS for help-gnu-emacs@gnu.org; Wed, 07 Jan 2009 23:27:01 -0500 Original-Received: from mtaout2.012.net.il ([84.95.2.4]:27340) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LKmU1-0005r4-HG for help-gnu-emacs@gnu.org; Wed, 07 Jan 2009 23:27:01 -0500 Original-Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KD400H00XGXCX00@i_mtaout2.012.net.il> for help-gnu-emacs@gnu.org; Thu, 08 Jan 2009 06:27:04 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.238.249]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KD400806XP39TS0@i_mtaout2.012.net.il> for help-gnu-emacs@gnu.org; Thu, 08 Jan 2009 06:27:04 +0200 (IST) In-reply-to: <16d25a74-0f05-4367-9314-6ed7784113be@s9g2000prg.googlegroups.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 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:61176 Archived-At: > From: Alan > Date: Wed, 7 Jan 2009 16:35:51 -0800 (PST) > > By and large I have no need for multibyte encodings, but I do use > diacritic character modifications, and have an occasional need to use > greek characters, for example. So I enabled UTF-8 encoding (without > really understanding the full extend of what is implied). What do you mean by "enabled UTF-8 encoding"? What did you put in your .emacs, exactly? Is there anything there besides the 2 lines you show in your message (on which I comment below)? > A the text output of a certain program includes the following. I will > show it both as it appears in the terminal and as it appears in an > emacs buffer: How did the output of that program get to an Emacs buffer? please describe the procedure used to insert the program's output into Emacs. > (standard-display-8bit 160 255) Remove this line, it will (or does already) cause you trouble. > (setq-default coding-system-for-write 'utf-8) It's much better to say (prefer-coding-system 'utf-8) > Can someone point the way to a simple explanation of the (seeming) > complexities of coding-systems for emacs? That complexity is supposed to be largely transparent in the default setup. So the simple rule of thumb for dealing with this is not to make any customizations you don't understand. I would suggest as the first step to remove everything you added to your .emacs for any encoding related problems, and see if any problems persist. If they do, come up here and explain them; it's quite possible that the solutions you found are incorrect, and are now causing more trouble.