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: Questions on charset encoding detection and keyboard layout Date: Thu, 10 Dec 2009 21:03:21 +0200 Message-ID: <83k4wu8xdy.fsf@gnu.org> References: <4B2108C2.8000506@gmail.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1260472114 3316 80.91.229.12 (10 Dec 2009 19:08:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Dec 2009 19:08:34 +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 Dec 10 20:08:27 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 1NIoNG-0007HZ-MP for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Dec 2009 20:08:26 +0100 Original-Received: from localhost ([127.0.0.1]:36567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIoNG-0000iT-FO for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Dec 2009 14:08:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NIoKK-0007HU-HQ for help-gnu-emacs@gnu.org; Thu, 10 Dec 2009 14:05:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NIoKF-0007FZ-W3 for help-gnu-emacs@gnu.org; Thu, 10 Dec 2009 14:05:24 -0500 Original-Received: from [199.232.76.173] (port=38804 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIoKF-0007FU-Ry for help-gnu-emacs@gnu.org; Thu, 10 Dec 2009 14:05:19 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:49512) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NIoKF-0008DW-D2 for help-gnu-emacs@gnu.org; Thu, 10 Dec 2009 14:05:19 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KUG00E00ABUZV00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Thu, 10 Dec 2009 21:05:18 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.213.252]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KUG00EY4ACTMF10@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Thu, 10 Dec 2009 21:05:18 +0200 (IST) In-reply-to: <4B2108C2.8000506@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:70566 Archived-At: > Date: Thu, 10 Dec 2009 22:42:11 +0800 > From: "Hou, Ruoyu" > > 1. My working environment involves handling documents with major eastern > Asian characters in different encodings(GB2312, GB18030, BIG5, GBK, > UTF-8, Shift-JIS, EUC-JP, ISO-2022-JP). My language environment was set > as UTF-8, because I want all the documents *I create* saved as UTF-8, > and properly display/edit/save other file in different encodings without > changing the raw encodings. I noticed that my emacs was not properly > recognizing documents encoded with euc-jp, so I have to manually set it > every time I encounter such documents. Is there any configurations I > could tweak to accurately auto-detect and display the file encodings I > mentioned above? Try putting this in your ~/.emacs init file (and restart Emacs after that): (prefer-coding-system 'euc-jp)