From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Pechiar Subject: Re: DITAA and Unicode characters [babel] Date: Mon, 25 Apr 2011 21:27:40 -0300 Message-ID: <20110426002740.GB4334@soloJazz.com> References: <20110424233845.GA29862@soloJazz.com> <87liyyywii.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEW83-00080A-EK for emacs-orgmode@gnu.org; Mon, 25 Apr 2011 20:27:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEW82-0005np-8O for emacs-orgmode@gnu.org; Mon, 25 Apr 2011 20:27:47 -0400 Received: from oproxy2-pub.bluehost.com ([67.222.39.60]:59098) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QEW81-0005nd-Rd for emacs-orgmode@gnu.org; Mon, 25 Apr 2011 20:27:46 -0400 Content-Disposition: inline In-Reply-To: <87liyyywii.fsf@gmail.com> 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: Eric Schulte Cc: emacs-orgmode@gnu.org 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. In case of not using UTF-8, the user can override this setting at will as you show above. Regards, .j.