he control shell '>>> ' has full support for the Unicode.
The addin shells have support with one limitation. If you want to manually
enter a Unicode string into an addin shell then you have to create a py-file
like so:
# -*- coding: utf-8 -*-
data=u"<some unicode characters>"
(see the document http://www.python.org/peps/pep-0263.html for more details)
and then run it in the addin shell via an execfile statement.
This is the only limitation. One may read unicode data from Excel, manipulate
it, examine it and put it into Excel.
The reason for the limitation is absence of a unicode version of the
PyRun_SimpleString in the Python API. There seems to be no way to force it to
interpret a command of the form
a='<some unicode>'
without loosing half of the information.
If anyone knows a solution I would appreciate a pointer.
|