all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.