Hello, pierre.techouey...@free.fr (Pierre Téchoueyres) writes:
> I want to propose the attached patch which allow you to specify an > optionnal `:coding' keyword to the `#+INCLUDE:' directive. Thank you. > This allow you to specify something like > > #+begin_example > ,#+INCLUDE: "myfile.cmd" src cmd :coding "cp850-dos" > #+end_example The quotes are not necessary. AFAICT, coding systems do not contain spaces. > Which allow you to have different encoding for your various sources > files. > > This allow me to include localised Microsoft Windows batch sources > inside my utf-8-unix org-files. Is it really an Org problem? E.g., couldn't you put a coding: cookie in your ".cmd" file? IMO, the coding system depends on the includee, not the includer. WDYT? Regards, -- Nicolas Goaziou