title: Can't input unicode in python IDE (Mac OS X)
body: <p>I'm trying to collect some unicode raw_input in the default python IDE, and as far as I'm aware, it should be as simple as:</p>
  
  <pre><code>&gt;&gt;&gt; c = raw_input()
  日本語
  &gt;&gt;&gt; print c
  日本語
  </code></pre>
  
  <p>However, when I try to input the unicode characters, the computer beeps some protestations and I end up with an empty string.  (To do this, I click on the IME switcher near the time and select the appropriate input method [which in this case is Japanese input).  Outside of the python IDE, the input works fine, I can input the characters and the system recognizes them as having been input.  In the IDE, I'll type some hiragana, and the drop-down kanji selection window appears as usual, but when I select the appropriate representation and hit enter, those beeps come and I wind up with nothing.  I figure there's a setting involved somewhere that I've missed.</p>
  
  <p>versions are:</p>
  
  <pre><code>Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
  [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Python 2.5.4 (r254:67916, Jun 24 2010, 21:47:25) 
  [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
  </code></pre>
  
  <p>neither of which work.  There's also this:</p>
  
  <pre><code>&gt;&gt;&gt; import sys
  &gt;&gt;&gt; sys.getdefaultencoding()
  'ascii'
  &gt;&gt;&gt; sys.stdin.encoding
  'UTF-8'
  &gt;&gt;&gt; sys.stdout.encoding
  'UTF-8'
  &gt;&gt;&gt; sys.getfilesystemencoding()
  'utf-8'
  </code></pre>
  
  <p>but from what I've read, the defaultencoding is a mysterious beast.  Changing it doesn't actually fix anything anyway.  That is, </p>
  
  <pre><code>&gt;&gt;&gt; import sys
  &gt;&gt;&gt; sys.setdefaultencoding('utf-8')
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  AttributeError: 'module' object has no attribute 'setdefaultencoding'
  &gt;&gt;&gt; reload(sys)
  &lt;module 'sys' (built-in)&gt;
  &gt;&gt;&gt; sys.setdefaultencoding('utf-8')
  &gt;&gt;&gt; # !!!
  ... c = raw_input()
  no dice!
  </code></pre>
  
  <p>doesn't work.  Just more beeping.  I can't cut-and-paste Japanese text from other applications, either.</p>