title: Unicode Clojure unit test output
body: <p>When unit testing some code that translates ascii sequences into unicode characters I have found a problem with the output of Clojure tests.</p>
  
  <p>I have tested that my terminal can output unicode characters (by cat-ing the test files) and that works fine, so the problem seems related to leiningen, Clojure or clojure.test somehow.</p>
  
  <p>Here's an example test (using the Greek section of unicode - I will also be using Greek extended but I assume the same problems will apply):</p>
  
  <pre><code>(deftest bc-string-w-comma
    (is (= "αβγ, ΑΒΓ" (parse "abg,*a*b*g"))))
  </code></pre>
  
  <p>It is meant to fail due to the missing space in the input. The output from <code>lein test</code> is the following:</p>
  
  <pre><code>Testing parse_perseus.test.betacode
  FAIL in (bc-string-w-comma) (betacode.clj:15)
  expected: (= "???, ???" (parse "abg,*a*b*g"))
    actual: (not (= "???, ???" "???,???"))
  Testing parse_perseus.test.core
  Testing parse_perseus.test.pluralise
  Ran 10 tests containing 59 assertions.
  1 failures, 0 errors.
  </code></pre>
  
  <p>What am I doing wrong here? Is this a terminal emulation problem or something clojure-related? I have the same problem running code in the REPL with Slime/swank/emacs. The REPL in emacs only outputs question marks for unicode output (although emacs is quite capable of understanding unicode).</p>
  
  <p>I have tried running this in Terminal and iTerm (OS X) with the same results.</p>