* How to set encoding for orgmode tangled file?
@ 2017-01-06 4:57 James Wong
0 siblings, 0 replies; only message in thread
From: James Wong @ 2017-01-06 4:57 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 762 bytes --]
Hi, all
In orgmode, is there a way to set coding system for the tangled file? For
example, my default coding system is utf-8, and when I tangle some src
blocks sometimes I want the tangled file to use other coding systems like
chinese-gbk. It would be perfect if orgmode had a header argument (eg.
:file-coding) for this. What I'm trying to do can be demonstrated with
following code blocks:
begin_src mylang :file-coding 'chinese-gbk :tangle tangled.txt
first block
end_src
begin_src mylang :tangle tangled.txt
second block
end_src
When org-babel-tangle is called, the two src blocks should be tangled into
one tangled.txt file with chinese-gbk as its coding system. Note that only
the first block has the :file-coding argument.
[-- Attachment #2: Type: text/html, Size: 7769 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-06 4:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-06 4:57 How to set encoding for orgmode tangled file? James Wong
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).