[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Re: export html -> doc
From: |
Eric Abrahamsen |
Subject: |
Re: [Orgmode] Re: export html -> doc |
Date: |
Tue, 21 Dec 2010 17:54:27 +0800 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) |
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:
>>>
>>> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
>>>
>>> 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…
>
> 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!
[Orgmode] Re: export html -> doc, William Gardella, 2010/12/20
[Orgmode] Re: export html -> doc, Chris Thompson, 2010/12/20