From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "William Xue" Newsgroups: gmane.emacs.devel Subject: Re: can not decode 0x93 and 0x94 to correct char Date: Fri, 28 Sep 2007 17:38:07 +0800 Organization: SMILING Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1190972326 24878 80.91.229.12 (28 Sep 2007 09:38:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Sep 2007 09:38:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Eli Zaretskii" , "Kenichi Handa" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 28 11:38:41 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IbCIx-0005w1-1q for ged-emacs-devel@m.gmane.org; Fri, 28 Sep 2007 11:38:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbCIt-0002Qn-Dd for ged-emacs-devel@m.gmane.org; Fri, 28 Sep 2007 05:38:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IbCIm-0002On-J9 for emacs-devel@gnu.org; Fri, 28 Sep 2007 05:38:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IbCIi-0002LJ-9h for emacs-devel@gnu.org; Fri, 28 Sep 2007 05:38:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbCIi-0002Kx-2U for emacs-devel@gnu.org; Fri, 28 Sep 2007 05:38:24 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IbCIh-0006Av-MQ for emacs-devel@gnu.org; Fri, 28 Sep 2007 05:38:23 -0400 Original-Received: by wa-out-1112.google.com with SMTP id k34so3528615wah for ; Fri, 28 Sep 2007 02:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:to:subject:from:organization:cc:content-type:mime-version:references:content-transfer-encoding:message-id:in-reply-to:user-agent; bh=TdY2uuRSbsilhKxNmxVXrKObzeZus2f0zeuWsRhGyHs=; b=fkVGzfTgdIIH87P0EQivF0b/fbpNkHxiTEVvRhtWp2p0fP2qGYoe5QdCKc8wqVeAWrmiuvbCKTVa0P+kVEFHs0gOcpIsJgOS1e09Y1URa/ktkvrFqQ3N2QH7OazAduLmC4oklC8/bqOHmmu+AepHcFmMJg6gyblsRakmo95Ua/g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:to:subject:from:organization:cc:content-type:mime-version:references:content-transfer-encoding:message-id:in-reply-to:user-agent; b=DC5F1UsQiIjjwNrg+7vPWlLth9vuKmGUghkrtFimzTHzVyKpl8z+vLXT8WNmh0U9h5vgwoNsb6PxzdGP/vBka7GDzcnjrRK9K4biANjP0LSuum2DrgMNRwREUSHAdIL27z+uJ/aGt9aPXW0MQBs3J3ISc7yX6BaQPzISdTgVL0Q= Original-Received: by 10.114.124.1 with SMTP id w1mr108719wac.1190972301848; Fri, 28 Sep 2007 02:38:21 -0700 (PDT) Original-Received: from smiling ( [222.92.124.222]) by mx.google.com with ESMTPS id m40sm5233142waf.2007.09.28.02.38.18 (version=SSLv3 cipher=OTHER); Fri, 28 Sep 2007 02:38:20 -0700 (PDT) In-Reply-To: User-Agent: Opera Mail/9.50 (Win32) X-Detected-Kernel: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79988 Archived-At: On Fri, 28 Sep 2007 16:30:01 +0800, Eli Zaretskii wrote: >> From: Kenichi Handa >> Date: Fri, 28 Sep 2007 15:31:04 +0900 >> Cc: emacs-devel@gnu.org >> >> \223 and \224 are code points of cp125X for LEFT DOUBLE >> QUOTATION MARK and RIGHT DOUBLE QUOTATION MARK. Their >> Unicode code points are U+201C and U+201D (note that they >> are not included in ISO-8859-1). >> >> With the trunk Emacs, you must use UTF-8 (or the other >> UTF-based encodings, some of CJK encodings) to handle those >> characters. > > Actually, Emacs 22.1 displays these characters just fine if I type > "C-x RET c cp1252 RET C-x C-f char_err_clip.c RET". OTOH, using UTF-8 > instead if cp1252 still displays octal escapes, like I'd expect. > > AFAIK, in Emacs 22 on Windows, cp1252 and friends map these characters > into Unicode by design, and that is why using cp1252 for visiting this > file does The Right Thing. So I don't think the OP needs to wait for > the inherent Unicode support. I use the following settings in .emacs to make the things work. (prefer-coding-system 'windows-1258) (prefer-coding-system 'utf-8-emacs) -- Yours, WilliamX