Re: [python-win32] Non-ascii character in source code cause 'Exceptionoccurred'

2006-07-03 Thread Mark Hammond
> Any presence of a non-ascii character, even if it is in the > comment only, > would cause this problem. I have tried various encoding, with > or without > BOM, and also adding the encoding specification at the top of > the file. > All these give the same result. On the other hand a similar > Java

Re: [python-win32] Python/ASP Request data with non ascii characters

2006-07-03 Thread Mark Hammond
> Hi Mark, thanks for the reply. The attribute you where > thinking off is `Item`. > What I'll need to work out now is which code page has been used to > encode that Unicode string. I'm not sure that is relevant. If I understand correctly, the code-page is only used when converting from a string

Re: [python-win32] Non-ascii character in source code cause 'Exception occurred'

2006-07-03 Thread aurora
P.S. The script can actually process unicode, passing unicode text to and from other COM objects. E.g. print u'\N{Euro Sign}'.encode('utf-8') The only problem is the source code cannot have any non-ascii characters. wy > I find that putting any non-ascii character in the Python source co

[python-win32] Non-ascii character in source code cause 'Exception occurred'

2006-07-03 Thread aurora
I find that putting any non-ascii character in the Python source code would cause an unspecific "Exception occurred" error. For example, _u.py # € print 'hello' g:\usr\bin\EmEditor Macros>cscript /e:python _u.py Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Cor

Re: [python-win32] Python/ASP Request data with non ascii characters

2006-07-03 Thread Emlyn Jones
On 7/1/06, Mark Hammond <[EMAIL PROTECTED]> wrote: > > I thought I would be able to do > > > > my_string = unicode(Request("formstring"),"ISO-8859-1")> > > > But i get: > > coercing to Unicode: need string or buffer, instance found. > > I'm guessing (and I mean guessing) this is because the CDispat

[python-win32] Calling Labview 8 via Python and COM

2006-07-03 Thread propadovic . nenad
Hello, I'm having an issue with Python/COM and Labview. What I want to do is to instantiate Labview an let it open and execute a "VI" (virtal instrument). This works well in Visual Basic: --- 'Declare the object type of

Re: [python-win32] EasyDialogs - how to set initial path

2006-07-03 Thread John Machin
On 30/06/2005 5:43 PM, Radovan Grznarik wrote: > Hi, > > I am using EasyDialogs (AskFileForOpen) and I am not able to set the > initial open path. I found in Python help that it should be 3rd > parameter, I doubt it. The Python *documentation*, whose first two lines ("2.7 EasyDialogs -- Basic Ma