From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Re: export html -> doc Date: Tue, 21 Dec 2010 17:54:27 +0800 Message-ID: <87ipyn8n8s.fsf@ericabrahamsen.net> References: <87aak0ye4e.fsf@ericabrahamsen.net> <87ei9czs5e.fsf@googlemail.com> <4D0F4005.2020703@christianmoe.com> <871v5bc25q.fsf@ericabrahamsen.net> <4D10618A.2020401@christianmoe.com> <87r5db8rke.fsf@ericabrahamsen.net> <4D1072EB.9000405@christianmoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=33578 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUyvW-0006tN-CU for emacs-orgmode@gnu.org; Tue, 21 Dec 2010 04:54:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUyvV-0000Ln-9g for emacs-orgmode@gnu.org; Tue, 21 Dec 2010 04:54:38 -0500 Received: from mail-iw0-f169.google.com ([209.85.214.169]:45858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUyvV-0000LZ-5Z for emacs-orgmode@gnu.org; Tue, 21 Dec 2010 04:54:37 -0500 Received: by iwn40 with SMTP id 40so4535332iwn.0 for ; Tue, 21 Dec 2010 01:54:36 -0800 (PST) In-Reply-To: <4D1072EB.9000405@christianmoe.com> (Christian Moe's message of "Tue, 21 Dec 2010 10:27:07 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mail@christianmoe.com Cc: emacs-orgmode@gnu.org On Tue, Dec 21 2010, Christian Moe wrote: > On 12/21/10 9:21 AM, Eric Abrahamsen wrote: >> On Tue, Dec 21 2010, Christian Moe wrote: >> >>> On 12/21/10 3:04 AM, Eric Abrahamsen wrote: >>>>> #+BIND: org-export-html-xml-declaration () >>>> That did the trick! Thank you. >>>> >>>> One small follow-up question: this produces iso-8859-1 encoded text by >>>> default; how do I go about asking for utf-8? >>> >>> With the same setup I still get utf-8. Though the XML declaration is >>> lost, it's still there in the line: >>> >>> >>> >>> What values do you have for the following? >>> >>> org-export-html-coding-system >>> buffer-file-coding-system >>> current-language-environment >> >> Aha! It's that first one I was looking for (I must not be using apropos >> correctly). I had: >> >> org-export-html-coding-system> nil >> buffer-file-coding-system> utf-8-with-signature-unix >> current-language-environment> "UTF-8" >> >> Setting org-export-html-coding-system to 'utf-8 resulted in a correct >> coding system in the html export, but from the docs you'd think it would >> have picked that up from buffer-file-coding-system to begin with=E2=80=A6 > > Mine does pick it up. I have > > org-export-html-coding-system > nil > buffer-file-coding-system > utf-8-unix > > and get correct utf-8 html output in Org 7.4, GNU Emacs 23.2.1 on a Mac. > > I don't have any further clues why it doesn't work for you. Thanks for getting me this far!