all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: William Xu <william.xwl@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: set input/output coding system for term-mode
Date: Tue, 12 Jun 2007 11:24:13 +0200	[thread overview]
Message-ID: <1CF3144D-DAE1-4B4F-8090-ACF1017DDF03@Web.DE> (raw)
In-Reply-To: <87d50123fy.fsf@www.williamxu.com>


Am 12.06.2007 um 06:37 schrieb William Xu:

> Firstly, I have (prefer-coding-system 'utf-8) in .emacs. In *terminal*
> buffer, suppose there's a file `foo' encoded with 'gb2312, at present
> `cat foo' would display garbages, which is what i'm trying to solve.

It does not work in any physical or emulated terminal to see the  
contents of a file which is not encoded in the terminal's default  
encoding in the file's proper encoding. Except this contents contains  
ANSI sequences to switch between character sets or writing directions.

The question is why you want to do such a silly thing in GNU Emacs!  
You can easily visit the file in some buffer using the correct  
encoding ... And you can prefer a few coding systems.

--
Greetings

   Pete

Think of XML as Lisp for COBOL programmers.
                               -- Tony-A (some guy on /.)

  reply	other threads:[~2007-06-12  9:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-12  2:37 set input/output coding system for term-mode William Xu
2007-06-12  3:22 ` Eli Zaretskii
2007-06-12  4:37   ` William Xu
2007-06-12  9:24     ` Peter Dyballa [this message]
2007-06-13  4:29       ` William Xu
2007-06-13  8:35         ` Peter Dyballa
2007-06-13  8:51           ` William Xu
2007-06-13  9:19             ` Peter Dyballa
2007-06-13  9:52               ` William Xu
2007-06-12  4:15 ` ssSslang
2007-06-12  4:42   ` William Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1CF3144D-DAE1-4B4F-8090-ACF1017DDF03@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=william.xwl@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.