all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: encoding
Date: Thu, 08 Jan 2009 06:27:00 +0200	[thread overview]
Message-ID: <u1vvel8x7.fsf@gnu.org> (raw)
In-Reply-To: <16d25a74-0f05-4367-9314-6ed7784113be@s9g2000prg.googlegroups.com>

> From: Alan <lngndvs@gmail.com>
> Date: Wed, 7 Jan 2009 16:35:51 -0800 (PST)
> 
> By and large I have no need for multibyte encodings, but I do use
> diacritic character modifications, and have an occasional need to use
> greek characters, for example.  So I enabled UTF-8 encoding (without
> really understanding the full extend of what is implied).

What do you mean by "enabled UTF-8 encoding"?  What did you put in
your .emacs, exactly?  Is there anything there besides the 2 lines you
show in your message (on which I comment below)?

> A the text output of a certain program includes the following.  I will
> show it both as it appears in the terminal and as it appears in an
> emacs buffer:

How did the output of that program get to an Emacs buffer? please
describe the procedure used to insert the program's output into Emacs.

>   (standard-display-8bit 160 255)

Remove this line, it will (or does already) cause you trouble.

>   (setq-default coding-system-for-write 'utf-8)

It's much better to say

  (prefer-coding-system 'utf-8)

> Can someone point the way to a simple explanation of the (seeming)
> complexities of coding-systems for emacs?

That complexity is supposed to be largely transparent in the default
setup. So the simple rule of thumb for dealing with this is not to
make any customizations you don't understand.  I would suggest as the
first step to remove everything you added to your .emacs for any
encoding related problems, and see if any problems persist.  If they
do, come up here and explain them; it's quite possible that the
solutions you found are incorrect, and are now causing more trouble.




  reply	other threads:[~2009-01-08  4:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-08  0:35 encoding Alan
2009-01-08  4:27 ` Eli Zaretskii [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-06-10 22:47 Encoding sirciny
2013-06-11  9:22 ` Encoding Peter Dyballa
2013-06-12 13:11   ` Encoding sirciny
2011-03-13  1:01 encoding rinefez
2011-03-13  1:07 ` encoding Pascal J. Bourguignon
2011-03-13 18:59   ` encoding rinefez
2011-03-15  0:35   ` encoding rinefez
2011-03-15  0:51     ` encoding Pascal J. Bourguignon
2011-03-15  1:21   ` encoding rinefez
2004-06-21  7:41 Encoding Rob Kramer
2004-06-21 18:43 ` Encoding Kevin Rodgers
2004-06-30 16:51 ` Encoding Kai Grossjohann

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=u1vvel8x7.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.