unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Pascal Bourguignon <pjb@informatimago.com>
Subject: Re: emacs and UTF-8
Date: Fri, 29 Apr 2005 00:54:48 +0200	[thread overview]
Message-ID: <87hdhqjyvb.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: 1114710292.436403.218420@z14g2000cwz.googlegroups.com

"knubee" <knubee@gmail.com> writes:

> I'm trying to find some summary explanation of the different ways Emacs
> handles UTF-8. There seem to be many different possible settings
> (set-language-environment and set-default-encoding-system and ...) --
> and there seem to be distinctions between reading, displaying, writing,
> etc. I have not been able to find anything that explains these
> distinctions. So far, I haven't found a way to set one variable
> somewhere so that makes everything within emacs read, write, and
> display UTF-8. Is there such a variable?
>
> At the moment I am able to write and display Swedish characters within
> Emacs. However:
>
> - if I reply to an email, the cited version will be full of junk
> characters instead of the Swedish characters (which display fine in the
> original email I recieved). My mail application is VM, if that makes
> any difference.
>
> - if I run a Scheme program on a data file that includes Swedish
> characters, the returned values will include junk characters for the
> Swedish ones (and again, in this case, I am able to open the file and
> see the Swedish characters perfectly).
>
> Aside from solving these *particular* problems I would like to find
> some good *model* for how Emacs handles UTF-8.
>
> I'm running Emacs 21.3 under Debian, and below are some settings from
> .emacs file.
>
> (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)
>
> thanks for any help.

VM communicates with sendmail using the process-coding-system

(setq default-process-coding-system '(utf-8 . utf-8))

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

This is a signature virus.  Add me to your signature and help me to live

  parent reply	other threads:[~2005-04-28 22:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-28 17:44 emacs and UTF-8 knubee
2005-04-28 20:05 ` Peter Dyballa
2005-04-28 20:09 ` Peter Dyballa
     [not found] ` <mailman.3358.1114718800.2895.help-gnu-emacs@gnu.org>
2005-04-28 21:33   ` knubee
2005-04-28 22:22     ` Peter Dyballa
2005-04-28 22:54 ` Pascal Bourguignon [this message]
2005-04-30 17:05   ` knubee

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87hdhqjyvb.fsf@thalassa.informatimago.com \
    --to=pjb@informatimago.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).