[ python-Bugs-1401642 ] Win32COM policy.py unicode exceptions
SourceForge.net
noreply at sourceforge.net
Tue Jan 10 23:49:59 CET 2006
Bugs item #1401642, was opened at 2006-01-10 15:34
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1401642&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
>Group: 3rd Party
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: rbell01824 (rbell01824)
Assigned to: Nobody/Anonymous (nobody)
Summary: Win32COM policy.py unicode exceptions
Initial Comment:
Getting exceptions when catching events while
interacting with InternetExplorer.Application.
Class connects to IE via
self.ie =
DispatchWithEvents("InternetExplorer.Application",
InternetExplorerEvents)
Subsequent events on some (not all) URLs cause
exceptions as follows:
pythoncom error: Python error invoking COM method.
Traceback (most recent call last):
File
"C:\Python24\Lib\site-packages\win32com\server\policy.py",
line 285, in _Invoke_
return self._invoke_(dispid, lcid, wFlags, args)
File
"C:\Python24\Lib\site-packages\win32com\server\policy.py",
line 290, in _invoke_
return S_OK, -1, self._invokeex_(dispid, lcid,
wFlags, args, None, None)
File
"C:\Python24\Lib\site-packages\win32com\server\policy.py",
line 653, in _invokeex_
args, kwArgs = self._transform_args_(args, kwArgs,
dispid, lcid, wFlags, serviceProvider)
File
"C:\Python24\Lib\site-packages\win32com\server\policy.py",
line 648, in _transform_args_
arg = str(arg)
exceptions.UnicodeEncodeError: 'ascii' codec can't
encode character u'\xae' in position 67: ordinal not in
range(128)
URL being accessed via
self.ie.Navigate( url )
A number of URLs lead to the behavior including the
following:
http://www.cnb.com:80/
http://www.cnb1.com:80/
http://www.charterbankcc.com:80/
http://www.charterbankec.com:80/
I can provide test code if it is helpful.
----------------------------------------------------------------------
>Comment By: Georg Brandl (birkenfeld)
Date: 2006-01-10 23:49
Message:
Logged In: YES
user_id=1188172
Since it's a problem with the win32 extensions which aren't
part of the official Python distribution, please report this
to ActiveState or the Pywin32 maintainer.
----------------------------------------------------------------------
Comment By: rbell01824 (rbell01824)
Date: 2006-01-10 16:11
Message:
Logged In: YES
user_id=1190195
The following url reproduces multiple instances of the behavior:
http://www.clever.net/kerry/scuba/main.htm
The browser should be configured to allow popups.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1401642&group_id=5470
More information about the Python-bugs-list
mailing list