From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: accents Date: Mon, 16 Jul 2007 16:33:55 +0200 Organization: Informatimago Message-ID: <87d4yso1t8.fsf@thalassa.lan.informatimago.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1184596980 20440 80.91.229.12 (16 Jul 2007 14:43:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2007 14:43: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 Mon Jul 16 16:42:58 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 1IARmq-0000qe-G1 for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jul 2007 16:42:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IARmq-0007Yy-12 for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jul 2007 10:42:56 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 46 Original-X-Trace: individual.net gAwGxDx6M+Zys33lUSXAzw0kzpljWbW8TpcHQDlmr+hK7hxx5X Cancel-Lock: sha1:YjQ1OTZkNGVmMTNhMDczYzZhNmE2ZDljZmNhZmEwMjNjNjZmMzYyNQ== sha1:KODJ1wRiKt2MvbBrKMdRSl1TqaU= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.1.50 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:150145 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:45730 Archived-At: "Andrés Ghigliazza" writes: > Hi there, > > I have a problem with emacs and accents. Emacs works perfectly with > accents in a text console, and in graphics mode. However, in a > windowed console (emacs -nw), I can't write accented letters > (although they can be seen perfeclty). Moreover, trying to write > accents while executing emacs in a remote host (with ssh), in a > windowed console, does not work too, but it works perfectly in the > remote host if executing with a text console. > > The same symptoms happens in two Debian Etch computers, one with GNOME > and the other with KDE. > > Can anybody help me? The first question, is what encoding does your terminal use to encode non ASCII characters when you enter them? (ISO-8859-1, UTF-8, KOI-8, etc). Then, there is the problem that the Meta key can be encoded either by a prefix ESC, or by setting the high-bit of the ASCII code. If you want to transmit characters encoded in a 8-bit character code, you need to configure your terminal (or terminal emulator) to send the Meta key as a prefix escape, not as a 8th-bit set. Once you've identified the encoding used by your terminal, you can configure emacs to process it with something like: (setq default-terminal-coding-system 'iso-8859-1) or: (setq default-terminal-coding-system 'utf-8) or whatever it is. -- __Pascal Bourguignon__ http://www.informatimago.com/ NOTE: The most fundamental particles in this product are held together by a "gluing" force about which little is currently known and whose adhesive power can therefore not be permanently guaranteed.