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: Sat, 29 Sep 2007 16:29:22 +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 1191054591 24576 80.91.229.12 (29 Sep 2007 08:29:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Sep 2007 08:29:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Eli Zaretskii" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 29 10:29:47 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 1IbXhr-0001tZ-H7 for ged-emacs-devel@m.gmane.org; Sat, 29 Sep 2007 10:29:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbXhn-0005f1-Kv for ged-emacs-devel@m.gmane.org; Sat, 29 Sep 2007 04:29:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IbXhj-0005eg-NR for emacs-devel@gnu.org; Sat, 29 Sep 2007 04:29:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IbXhh-0005e2-QQ for emacs-devel@gnu.org; Sat, 29 Sep 2007 04:29:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbXhh-0005dz-Ki for emacs-devel@gnu.org; Sat, 29 Sep 2007 04:29:37 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IbXhh-0004lU-9f for emacs-devel@gnu.org; Sat, 29 Sep 2007 04:29:37 -0400 Original-Received: by wa-out-1112.google.com with SMTP id k34so3899121wah for ; Sat, 29 Sep 2007 01:29:35 -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=iwEfo83YjihGQi4gFc2Z0zEOFP6MyKbrsfmpuwGSYLM=; b=jYSnLdBenJth3s4Iy0xhEuJsnUs3qsFNKA9rGH2QK+kX2Lqra3plbWJOljGxtz+YAyNZFhxdJIACIMMK3V7QnXTI6gWyFRongmmKCKYz0zaCMegy9bkQIzsoSK0ZuugYE1UpekVI0ALvNuGTpV/UQJ+nZpAPkEGbUrWckqXCX0c= 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=AN36Aw86jMm9R33Bq63G++v1YyqLr0RpEdWTqHrV10c4ieMa7uvIhpbve85ykUYD9F2/Phmk6vagZnFTOVRVgoo3GGbBM/lTMnNZqB+3DuoofzHzf1qIRYJnYTbuSNGaHUnzZHQ1r/4SojVqgKpihqV7xz8vgmhnQjnHnTQgcG8= Original-Received: by 10.114.88.1 with SMTP id l1mr1731721wab.1191054575742; Sat, 29 Sep 2007 01:29:35 -0700 (PDT) Original-Received: from smiling ( [222.92.124.222]) by mx.google.com with ESMTPS id l27sm7035253rvb.2007.09.29.01.29.31 (version=SSLv3 cipher=OTHER); Sat, 29 Sep 2007 01:29:34 -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:80013 Archived-At: On Fri, 28 Sep 2007 22:45:29 +0800, Eli Zaretskii wrote: > Emacs on Windows looks up the UI language of the current user, and > then sets up the language environment for that language. Most > language environments do not specify cpNNNN as their preferred > encodings, so neither does Emacs. Are the following suitable settings for this situation? ; for cp1258 (prefer-coding-system 'windows-1258) ; for displaying utf-8 encoded file (prefer-coding-system 'utf-8-emacs) ; for displaying chinese characters (prefer-coding-system 'gb2312) It would be a little problem. Because if I changed the gb2312 to gb18030 or gbk, the first setting (prefer-coding-system 'windows-1258) would be failed. -- Yours, WilliamX