From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kj Newsgroups: gmane.emacs.help Subject: How to determine encoding for file? Date: Sun, 24 Jan 2010 21:29:49 +0000 (UTC) Organization: none Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1264433819 24551 80.91.229.12 (25 Jan 2010 15:36:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Jan 2010 15:36:59 +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 Jan 25 16:36:51 2010 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 1NZQxw-0002eN-Kl for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jan 2010 16:35:00 +0100 Original-Received: from localhost ([127.0.0.1]:48324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZQxx-0005rW-LR for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jan 2010 10:35:01 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: panix2.panix.com Original-X-Trace: reader1.panix.com 1264368589 14495 166.84.1.2 (24 Jan 2010 21:29:49 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Sun, 24 Jan 2010 21:29:49 +0000 (UTC) X-No-Confirm: yes User-Agent: nn/6.7.3 Original-Xref: news.stanford.edu gnu.emacs.help:176357 X-Mailman-Approved-At: Mon, 25 Jan 2010 10:34:13 -0500 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:71437 Archived-At: I've downloaded a large file that is supposed to contain a mixture of Japanese and English (it's basically a learner's dictionary). The English is displayed correctly, but not so for the Japanese. I've tried setting the buffer's coding system to utf-8, japanese-shift-jis, japanese-shift-jis-mac, japanese-shift-jis-dos (just guessing). None worked. In fact, I'm not even sure that any of these changes of the coding system achieved *anything*, since the buffer's appearance remained unchanged throughout all this mucking around. I used the command set-buffer-file-coding-system to do this. Should I need to do anything besides re-setting the coding system to see a change in how the file is displayed? More importantly, is there a better way to determine a file's correct coding system besides trial and error? TIA! ~K