# -*- coding: utf-8 -*-
#!/usr/bin/env python
print unicode("тест", "utf-8")
default Ulipad encoding = utf8
try run from Ulipad:
UnicodeError: 'ascii' codec can't decode byte 0xd1 in position 0:
ordinal not in range(128)
=\
but when i run it from system - it work
maybe promblem in pyShell?
sys.getdefaultencoding() = ascii on it;)
--
I like python!
UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou
python a.py > a.txt
the exception will also occured. So I think it's not the buf of
ulipad, and it's because the stdout cann't redirect the unicode to
stdout.
Are you use other encoding in windows?? because utf8 is native for Linux
boxs.
Are you use the Unicode version of python and wxpython?
--
Mario Lacunza <mlac...@gmail.com>