From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "knubee" Newsgroups: gmane.emacs.help Subject: emacs and UTF-8 Date: 28 Apr 2005 10:44:52 -0700 Organization: http://groups.google.com Message-ID: <1114710292.436403.218420@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1114710309 9804 80.91.229.2 (28 Apr 2005 17:45:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2005 17:45:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 28 19:45:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DRD3M-0008Vm-VD for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Apr 2005 19:43:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DRD9X-0004Fb-DM for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Apr 2005 13:50:19 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 83.250.1.32 Original-X-Trace: posting.google.com 1114710297 26255 127.0.0.1 (28 Apr 2005 17:44:57 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 28 Apr 2005 17:44:57 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=83.250.1.32; posting-account=MkYT1A0AAAAygkk8ajaRXhpLS0AUkwvK Original-Xref: shelby.stanford.edu gnu.emacs.help:130542 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:26111 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26111 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.