From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Dietsche Subject: Re: Add publishing with utf8 Date: Tue, 22 Nov 2011 22:17:40 +0100 Message-ID: <878vn7dfgr.fsf@rat.lan> References: <20111122200922.14650.qmail@rage.so36.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSxix-0001o5-Nh for emacs-orgmode@gnu.org; Tue, 22 Nov 2011 16:17:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSxiw-0004rY-BC for emacs-orgmode@gnu.org; Tue, 22 Nov 2011 16:17:51 -0500 Received: from www85.your-server.de ([213.133.104.85]:46398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSxiw-0004rC-08 for emacs-orgmode@gnu.org; Tue, 22 Nov 2011 16:17:50 -0500 In-Reply-To: <20111122200922.14650.qmail@rage.so36.net> (sindikat@mail36.net's message of "Tue, 22 Nov 2011 21:09:22 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: sindikat Cc: emacs-orgmode@gnu.org "sindikat" writes: > I added this to my .emacs: > > (set-language-environment "UTF-8") > (prefer-coding-system 'utf-8-unix) This is what I use. Even when I open a new file, the buffer coding system is chosen as utf-8-unix, shown as U: in the mode line. Maybe your environment is setup differently? What is the value of LANG or LC_ALL or any other LC_* environment variable? I have set LANG=de_DE.utf8. > (org-export-html-coding-system 'utf-8-unix) > > but Emacs still opens files with pure ASCII as undecided-unix, thus > producing wrong iso-8859-1 in my charsets again. I don't know what to do. > Is there any way to force Emacs open any file as utf-8? Maybe C-h v file-coding-system-alist RET helps, if setting the environment doesn't solve your problem. Regards, Olaf