From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Zhang Wei Newsgroups: gmane.emacs.devel Subject: Re: Emacs unicode 2 cvs display chaos chodes on GB18030 chinese encoding files. Date: Mon, 20 Nov 2006 20:54:23 +0800 Message-ID: References: <20061120115818.GA5263@localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164027397 22989 80.91.229.2 (20 Nov 2006 12:56:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Nov 2006 12:56:37 +0000 (UTC) Cc: Hongsheng Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 20 13:56:34 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gm8hF-0004OX-C9 for ged-emacs-devel@m.gmane.org; Mon, 20 Nov 2006 13:56:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gm8hF-0002Qf-0V for ged-emacs-devel@m.gmane.org; Mon, 20 Nov 2006 07:56:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gm8gz-0002OZ-UQ for emacs-devel@gnu.org; Mon, 20 Nov 2006 07:56:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gm8gy-0002My-P4 for emacs-devel@gnu.org; Mon, 20 Nov 2006 07:56:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gm8gy-0002Me-9O for emacs-devel@gnu.org; Mon, 20 Nov 2006 07:56:08 -0500 Original-Received: from [66.249.82.239] (helo=wx-out-0506.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gm8gy-0004LJ-Ek for emacs-devel@gnu.org; Mon, 20 Nov 2006 07:56:08 -0500 Original-Received: by wx-out-0506.google.com with SMTP id t10so1830340wxc for ; Mon, 20 Nov 2006 04:56:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:to:cc:subject:references:from:mail-followup-to:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=Yils52BMlTxjSKxPkM4enr9qT22kfhZWSKaQFr3UgoUEpEWn7SBnScwGs+GReqsYgvxTSK8oxZIj1TZpgQ9QoLGZLEdBqsJVkRoSgH0CPTkZPn5T+bJP9Dm18eJkIkW/txYgMd0Ada1uL12ktBlY98McB6dSecFUSX1VO7y+I3E= Original-Received: by 10.90.79.6 with SMTP id c6mr583331agb.1164027367081; Mon, 20 Nov 2006 04:56:07 -0800 (PST) Original-Received: from brep ( [59.66.78.105]) by mx.google.com with ESMTP id 33sm12394733wra.2006.11.20.04.54.47; Mon, 20 Nov 2006 04:56:06 -0800 (PST) Original-To: emacs-devel@gnu.org Mail-Followup-To: emacs-devel@gnu.org, Hongsheng In-Reply-To: <20061120115818.GA5263@localdomain> (Hongsheng's message of "Mon\, 20 Nov 2006 19\:58\:18 +0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 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:62556 Archived-At: Hongsheng writes: [...] > Attached are two tex files encoded with GB18030, the Emacs will display > GB18030-nomal.tex correctly, but the chinese characters in GB18030-chaos.tex > will be chaos, all the chaos codes use the *ISO8859-1* encoding scheme. Just C-x r gbk, or C-x r gb18030, to revert your buffer with the proper coding system, Emacs is not always so smart to detect coding system correctly. Use file variables wherever possible, put %% -*- coding: gb18030; -*- as the first line of your tex file, or put %% Local Variables: %% coding: gb18030 %% End: at the end of your tex file.