Neil Hodgson schrieb:
Robert:
PythonWin did have some Unicode support but I think Mark Hammond was
discouraged by bugs. In pythonwin/__init__.py there is a setting
is_platform_unicode = 0 with a commented out real test for Unicode on
the next line. Change this to 1 and restart and you
Robert [EMAIL PROTECTED] writes:
Guess I have to create special C-code for my major wide unicode needs -
especially listctrl-SetItem and TextOut-Stuff...
Or does anybody know of some existing wide-unicode functions/C-code
parallel to normal pywin32?
You could use ctypes to access and call
Robert:
After is_platform_unicode = auto, scintilla displays some unicode
as you showed. but the win32-functions (e.g. MessageBox) still do not
pass through wide unicode.
Win32 issues are better discussed on the python-win32 mailing list
which is read by more of the people interested in
(windows or linux console)
print u'\u034a'
Traceback (most recent call last):
File stdin, line 1, in ?
File C:\PYTHON23\lib\encodings\cp850.py, line 18, in encode
return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u034a'
Robert wrote:
(windows or linux console)
print u'\u034a'
Traceback (most recent call last):
File stdin, line 1, in ?
File C:\PYTHON23\lib\encodings\cp850.py, line 18, in encode
return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't
gregarican wrote:
Robert wrote:
(windows or linux console)
print u'\u034a'
Traceback (most recent call last):
File stdin, line 1, in ?
File C:\PYTHON23\lib\encodings\cp850.py, line 18, in encode
return codecs.charmap_encode(input,errors,encoding_map)
Robert:
u'sytest3\\\u041f\u043e\u0448\u0443\u043a.txt'
u'\u043a' is cyrillic: ะบ
no matter, I guess no (small) system can know all unicode ranges in use
wordwide. The real problem is: to get a smoot, smart an tolerant setup
by default - not a mixup of 4 codecs and (most bothersome)