I want a shell that supports unicode in windows, powershell as it ships doesn't seem to. Powershell V2 (win7 x64) :
PS C:\> powershell
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
PS C:\> python
Python 2.6.2 (r262:71605, Apr 14 2009, 22:46:50) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> unicode_char=unichr(0xf12)
>>> unicode_char
u'\u0f12'
>>> print unicode_char
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\python26\lib\encodings\cp437.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u0f12' in position 0: character maps to <undefined>
>>>
I get similar results with PowerShell ISE, even though some places around the web claim it to be unicode supporting or whatever...
the Python Integrated Developement Environment (IDLE) 2.6.2 seems to work fine:
>>> unicode_char=unichr(0xf12)
>>> print unicode_char
༒
>>>
IDLE is very slow and would prefer another shell, any ideas? Can I make this work in powershell?