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

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

Re: emacs -nw and accented characters


From: Joel Smith
Subject: Re: emacs -nw and accented characters
Date: 18 Jan 2004 06:56:47 -0800

Eli Zaretskii <eliz@elta.co.il> wrote in message 
news:<mailman.850.1074411076.928.help-gnu-emacs@gnu.org>...
> > From: joelvsmith@earthlink.net (Joel Smith)
> > Newsgroups: gnu.emacs.help
> > Date: 17 Jan 2004 20:03:18 -0800
> > 
> > what does it mean to "set terminal-coding-system to match what the
> > terminal expects?"
> 
> It means that the encoding of characters used by Emacs when writing to
> the screen should be what aterm expects to see for Latin-1 characters.
> 
> What happens if you make a buffer with accented characters, save it
> to a disk file with
> 
>      C-x RET f latin-1 RET
>      C-x C-s
> 
> and then dump that file to the screen in an aterm session with
> 
>     cat myfile
> 
> (where myfile is the file to which you saved the accented characters)?
> Do the characters display correctly then?
> 
> The above emulates what Emacs is supposed to do with terminal encoding
> set to latin-1, as you reported for your case: it encodes each
> non-ASCII character with its Latin-1 code, then sends that code to the
> screen.

I created two files.  The first with accented characters saved using
the latin-1 coding system.  the other with the same text but under the
default, utf-8.  

results-- 

aterm - accented characters appear appear garbled in emacs.  text
saved in latin-1 appears ok when displayed in aterm with cat.  text
saved in utf-8 is garbled when displayed in aterm with cat.

using these files i looked at them in xterm.  each appear fine in
emacs -nw, but only the utf-8 file appears fine with cat.


reply via email to

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