From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: utf8 char display in buffer Date: Wed, 10 Jun 2009 22:21:39 -0500 Message-ID: References: <7I2dndeTy7sqkLLXnZ2dnUVZ_gmdnZ2d@sysmatrix.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1244691647 25496 80.91.229.12 (11 Jun 2009 03:40:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Jun 2009 03:40:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 11 05:40:45 2009 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 1MEb9g-0002zC-MS for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jun 2009 05:40:44 +0200 Original-Received: from localhost ([127.0.0.1]:34685 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEb9g-0004Fp-2i for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Jun 2009 23:40:44 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!backlog2.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 10 Jun 2009 22:21:40 -0500 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 49 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.132.252 Original-X-Trace: sv3-viunNi7CbI339h2w8ESYH908K1DFRmobhoUWzpHWmeOsuxpoHnU6tiXXKZQWwiqRy4CbrydkWMp/Lcl!gaFgnGlvmIsAnSE645AbCwYArlxll2TMujSqwNC2T/IV4x6MbexDfeXDIfwIN/JIuWHdAAm04kJh!B0DHSRH/XZ+uOFOESEXXctwspR3HD48= Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 X-Original-Bytes: 3135 Original-Xref: news.stanford.edu gnu.emacs.help:169912 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:65133 Archived-At: Lewis Perin wrote: > I've been following this thread closely because I have the original > poster's problem, only the characters that give me trouble are some - > not many, actually - Chinese characters, e.g. ni3, the normal second > person pronoun. And, as with the original poster, the troublesome > characters, when copied and pasted to other applications from Emacs, > display perfectly. > > "B. T. Raven" writes: > >> [...] >> (set-language-environment 'UTF-8) >> (set-default-coding-systems 'utf-8) >> (setq file-name-coding-system 'utf-8) >> (setq default-buffer-file-coding-system 'utf-8) >> (setq coding-system-for-write 'utf-8) >> (set-keyboard-coding-system 'utf-8) >> (set-terminal-coding-system 'utf-8) >> (set-clipboard-coding-system 'utf-8) >> (set-selection-coding-system 'utf-8) >> (prefer-coding-system 'utf-8) >> (modify-coding-system-alist 'process >> "[cC][mM][dD][pP][rR][oO][xX][yY]" 'utf-8-dos) >> >> >> and try C-x ret c utf-8 >> C-x C-f >> >> to open the file. > > I tried this, but it didn't help. Emacs 22.3 / Win32. Even on Emacs 23 although I see the characters in the buffer, I can't save the following as utf-8: nǐ hǎo 你 好 u+4f60 and u+597d Or at least not so as to be readable with 22.3. Both versions are using Arial Unicode MS. Why is that? > > /Lew > --- > Lew Perin / perin@acm.org > http://www.panix.com/~perin/babelcarp.html