From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: DITAA and Unicode characters [babel] Date: Mon, 25 Apr 2011 18:58:20 -0600 Message-ID: <8739l5zv4j.fsf@gmail.com> References: <20110424233845.GA29862@soloJazz.com> <87liyyywii.fsf@gmail.com> <20110426002740.GB4334@soloJazz.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEWbj-0002WZ-Ez for emacs-orgmode@gnu.org; Mon, 25 Apr 2011 20:58:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEWbh-0001Z8-W6 for emacs-orgmode@gnu.org; Mon, 25 Apr 2011 20:58:27 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:41324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEWbh-0001Z4-Qc for emacs-orgmode@gnu.org; Mon, 25 Apr 2011 20:58:25 -0400 Received: by iwg8 with SMTP id 8so164652iwg.0 for ; Mon, 25 Apr 2011 17:58:25 -0700 (PDT) In-Reply-To: <20110426002740.GB4334@soloJazz.com> (Juan Pechiar's message of "Mon, 25 Apr 2011 21:27:40 -0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Juan Pechiar Cc: emacs-orgmode@gnu.org Juan Pechiar writes: > On Mon, Apr 25, 2011 at 01:13:41PM -0600, Eric Schulte wrote: >> I just pushed up a change to ob-ditaa which adds a new header argument, >> namely :java through which options can be passed to the java command. >> With that patch the following should work >> >> #+begin_src ditaa :file ... :cmdline -e utf-8 -r -v :java -Dfile.encoding=UTF-8 >> ... >> #+end_src >> >> Now that there is a :java header argument for ditaa code, the following >> could be put in a user's init file to set this flag for *all* ditaa code >> run on their system. >> >> #+begin_src emacs-lisp >> (push '(:java . "-Dfile.encoding=UTF-8") org-babel-default-header-args:ditaa) >> #+end_src > > Works perfectly! Thanks! > >> I wonder if there would be any downside to adding this as a default >> value? This could be added to `org-babel-default-header-args:ditaa' in >> ob-ditaa.el. > > I think it'd be a reasonable default that will work out-of-the-box for > most users. > OK, this is now part of the default ditaa header arguments, we'll see if anyone complains... Best -- Eric > > In case of not using UTF-8, the user can override this setting at > will as you show above. > > Regards, > .j. -- Eric Schulte http://cs.unm.edu/~eschulte/