[ python-Bugs-1401642 ] Win32COM policy.py unicode exceptions
SourceForge.net
noreply at sourceforge.net
Tue Jan 10 15:34:42 CET 2006
Bugs item #1401642, was opened at 2006-01-10 14:34
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Python 2.4
Status: Open
Resolution: None
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.
----------------------------------------------------------------------
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