title: How to show Japanese characters in Mac OS X Terminal?
body: <p>So I'm running MeCab (http://mecab.sourceforge.net/#download) to word-segment and do morpho-analysis of Japanese sentences. However, when I run the program, I see abracadabra due to some encoding issues in Mac OS X Terminal. I googled the topic, added Dfile.encoding option, added the following 3 lines in .inputrc:</p>
  
  <pre><code>set convert-meta off
  set meta-flag on
  set output-meta on
  </code></pre>
  
  <p>Nothing works. Any ideas how to show Japanese characters in Mac OS X Terminal? Here's the output of the run of the program test.java:</p>
  
  <pre><code>env DYLD_LIBRARY_PATH=. /usr/bin/java -Dfile.encoding=utf-8 test
  0.98pre3
  å¤  ̾»ì,°ìÈÌ,*,*,*,*,*
  ª郎ã µ­¹æ,°ìÈÌ,*,*,*,*,*
  ¯ä  ̾»ì,¸Çͭ̾»ì,Áȿ¥,*,*,*,*
  º郎にこのæ  µ­¹æ,°ìÈÌ,*,*,*,*,*
  ¬ã  ̾»ì,¥µÊÑÀÜ³,*,*,*,*,*
      µ­¹æ,°ìÈÌ,*,*,*,*,*
  æ¸  ̾»ì,°ìÈÌ,*,*,*,*,*
  ¡ã  µ­¹æ,³ç
      BOS/EOS,*,*,*,*,*,*,*,*
  å   ̾»ì,°ìÈÌ,*,*,*,*
  ª郎  µ­¹æ,°ìÈÌ,*,*,*
  ¯   ̾»ì,¸Çͭ̾»ì,Áȿ¥,*,*
  º郎にこ    µ­¹æ,°ìÈÌ,*,*,*
  ¬   ̾»ì,¥µÊÑÀÜ³,*,*,*,
      µ­¹æ,°ìÈÌ,*,*,*
  æ   ̾»ì,°ìÈÌ,*,*,*,*
  ¡   µ­¹æ,³ç¸̳«,*,*,*,*
      µ­¹æ,°ìÈÌ,*,*,*
      BOS/EOS,*,*,*,*,*,*,*,*
  EOS
  </code></pre>