Re: How to emit UTF-8 from console mode?

2008-10-01 Thread Siegfried Heintze
>Make sure you are using the Lucida Console font for the cmd.exe window and >type the commands: > >chcp 1251 >python -c "print ''.join(unichr(i) for i in range(0x410,0x431))" > >Output: > >? > Wowa! I was not aware of that chcp command! Thanks! How could I do that

How to emit UTF-8 from console mode?

2008-09-30 Thread Siegfried Heintze
The following perl program works when I run it from urxvt-X console on cygwin-x windows LC_CTYPE=en_US.UTF-8 urxvt-X.exe& perl -wle "binmode STDOUT, q[:utf8]; print chr() for 0x410 .. 0x430;" This little one liner prints the Russian alphabet in Cryllic. With some slight modification it will als

How does python call OS?

2008-09-13 Thread Siegfried Heintze
I just finished reading a chapter in "Python Programming on Win32" and tried out the pythonwin scribble application. I'm not sure if I got it right because I could not open a new document. I tried to download the source code as referenced in the chm file but it is corrupted. I cut and pasted fro

Re: Python a good choice for experimenting with Win32 API?

2008-09-13 Thread Siegfried Heintze
I found this but have not tried it yet: http://aspn.activestate.com/ASPN/Mail/Message/ActivePython/1775844 How different is ActiveState Python from CPython? Can they both be used with pywin32 and the other packages? Thanks! Siegfried -- http://mail.python.org/mailman/listinfo/python-list

How to emit Cyrillic and Chinese via unicode from console mode?

2008-09-13 Thread Siegfried Heintze
Can someone point me to an example of a little program that emits non-ascii Unicode characters (Russian or Chinese perhaps)? The unicode Russian/Cyrillic alphabet starts at 0x410. Is this possible to do in a console mode program? If not, I guess I would want to use pywin32 to create a window an

Python a good choice for experimenting with Win32 API?

2008-09-12 Thread Siegfried Heintze
I need to understand some User32.dll functions and I'm making an elaborate GUI so I can easily experiment with different parameters. This is taking a long time. I'm new to python and I'm thinking it would sure be nice to have an interpreter I can type a few lines of code into and test things. (

Wanted: python script to convert to/from UTF-8 to/from XML Entities

2008-08-30 Thread Siegfried Heintze
Does someone have a little python script that will read a file in UTF-8/UTF-16/UTF-32 (my choice) and search for all the characters between 0x7f-0xff and convert them to an ASCII digit string that begins with "&#" and ends with ";" and output the whole thing? If not, could someone tell me h

Re: IDEs for COM scripting: C# v. Python v. Iron Python v. JPython

2007-07-05 Thread Siegfried Heintze
Can someone suggest some criterion for selecting Python, JPython or Iron Python for COM Scripting? I have not looked: I assume there are multiple eclipse plugins for Python/JPython/Iron Python. Could someone recommend one? I'll also try out eric that was mentioned previously. I figured out my

IDEs for COM scripting: C# v. Python v. Iron Python v. JPython

2007-07-04 Thread Siegfried Heintze
I love the typing assist I get when using C# in VS2005 to write COM clients. I need to write a program to automate some tasks in outlook. Givin that the typing assist feature is very important to me, what would be the best combination of IDE and language for COM scripting? I was experimenting w