From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/38481 Path: main.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.gnus.general Subject: Re: Have Emacs guess the charset? Date: 01 Sep 2001 17:32:38 +0100 Sender: Dave Love Message-ID: References: <871ym71ulx.fsf@inanna.rimspace.net> <2nhev2uvgj.fsf@piglet.jia.vnet> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035174337 22651 80.91.224.250 (21 Oct 2002 04:25:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:25:37 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 17968 invoked from network); 1 Sep 2001 16:32:41 -0000 Original-Received: from djlvig.dl.ac.uk (148.79.112.146) by gnus.org with SMTP; 1 Sep 2001 16:32:41 -0000 Original-Received: from fx by djlvig.dl.ac.uk with local (Exim 3.12 #1 (Debian)) id 15dDhI-0003RI-00 for ; Sat, 01 Sep 2001 17:32:40 +0100 X-Face: "_!nmR@11ZNuumt0oqG"Y3Hfy|;FGz)`"ul[G?ah6k-oNyDW?3/Nq3Qab$kUnUQ_d4};kPl R=}-Vqfo|S5mThi-kaBR=>%g5a3-OvnEhdHu{^APIaP:b}0m!$bDC>SX zz'r)e?`at?tpD*+~b+pf Original-To: ding@gnus.org User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.106 Original-Lines: 23 Xref: main.gmane.org gmane.emacs.gnus.general:38481 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:38481 >>>>> "ZSH" == ShengHuo ZHU writes: >> `detect-coding-region' ZSH> I tested the function on the attached files in both Emacs 21 and ZSH> XEmacs 21.4. I found the one in XEmacs did a good job, but the one in ZSH> Emacs is almost useless. What does that mean? The function detects the Big5 for me in Emacs. It won't detect GB outside an appropriate language environment, because there's no coding category registered for it. If Emacs doesn't detect an encoding with an appropriate entry in `coding-category-list' it's a bug. However, I think you're on a hiding to nothing with this, even if you have the corresponding coding system with which to decode it. (E.g. _I_ have windows-1252, but most people don't, and you couldn't typically distinguish it from other CCL coding systems which use most, or all, octets.)