From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ismael Valladolid Torres Newsgroups: gmane.emacs.help Subject: Re: Emacs, mutt and a problem with locales Date: Sun, 24 Dec 2006 18:05:21 +0100 Message-ID: <20061224170521.GF9480@terra.es> References: <87d569pii0.fsf@MagnumOpus.khem> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1166980107 8853 80.91.229.10 (24 Dec 2006 17:08:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 24 Dec 2006 17:08:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 24 18:08:24 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GyWpi-0004tp-TA for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Dec 2006 18:08:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GyWpi-0001rt-2s for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Dec 2006 12:08:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GyWn5-0007gP-2x for help-gnu-emacs@gnu.org; Sun, 24 Dec 2006 12:05:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GyWmy-0007dI-9Q for help-gnu-emacs@gnu.org; Sun, 24 Dec 2006 12:05:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GyWmx-0007dB-Vu for help-gnu-emacs@gnu.org; Sun, 24 Dec 2006 12:05:32 -0500 Original-Received: from [82.98.135.106] (helo=hl33.dinaserver.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GyWmx-0005so-CW for help-gnu-emacs@gnu.org; Sun, 24 Dec 2006 12:05:31 -0500 Original-Received: from pluton.energei.shacknet.nu (13.Red-80-38-119.staticIP.rima-tde.net [80.38.119.13]) (authenticated bits=0) by hl33.dinaserver.com (DinaMail/1.7) with ESMTP id kBOH5Kkt000755; Sun, 24 Dec 2006 18:05:21 +0100 Original-Received: from ismael by pluton.energei.shacknet.nu with local (Exim 4.63) (envelope-from ) id 1GyWmn-0003Am-Gn; Sun, 24 Dec 2006 18:05:21 +0100 Original-To: Charles philip Chan Content-Disposition: inline In-Reply-To: <87d569pii0.fsf@MagnumOpus.khem> User-Agent: Mutt/1.5.13 (2006-08-11) X-DinaScanner-Information: DinaScanner. Filtro anti-Spam y anti-Virus X-DinaScanner: Libre de Virus X-DinaScanner-SpamCheck: no es spam, SpamAssassin (puntaje=-4.157, requerido 6, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.24, BAYES_00 -2.60) X-DinaScanner-From: ivalladolidt@terra.es 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:39902 Archived-At: Charles philip Chan escribe: > On 24 Dec 2006, ivalladolidt@terra.es wrote: > > > But when I answer a message with spanish special > > characters, Emacs opens and everything starts behaving unproperly. > > Try putting: > > (set-language-environment "UTF-8") > > in your ~/.emacs. You should also set emacs to use a unicode > font. Please refer to this: > > http://www.emacswiki.org/cgi-bin/emacs-en?CategoryInternationalization Thanks, solved like this: (when (string-match "UTF-8" (getenv "LANG")) (set-language-environment "UTF-8")) Thanks for the ideas. Cordially, Ismael -- Ismael Valladolid Torres http://lamediahostia.blogspot.com/ m. +34679156321 http://www.flickr.com/photos/ivalladt j. ivalladt@jabberes.org