help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set input/output coding system for term-mode


From: Peter Dyballa
Subject: Re: set input/output coding system for term-mode
Date: Tue, 12 Jun 2007 11:24:13 +0200


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 via email to

[Prev in Thread] Current Thread [Next in Thread]