d***@netzero.com
2005-03-18 23:52:46 UTC
Ran into this when I was testing the SMS code: some ISP insert cutesy non-unicode characters into their ads which are appended to outgoing mail messages, some of which are SMS messages. As a result, BitPim raised an exception while trying to save these messages. Any suggestions as how to handle this?
Thanks,
-Joe Pham
An unexpected exception has occurred.
Please see the help for details on what to do.
Traceback (most recent call last):
File "f:\My Documents\cell_apps\bitpim\gui.py", line 1256, in OnCallback
event()
File "f:\My Documents\cell_apps\bitpim\gui.py", line 122, in __call__
return apply(self.cb, self.args, self.kwargs)
File "f:\My Documents\cell_apps\bitpim\gui.py", line 79, in __call__
apply(self.method, self.args+args, d)
File "f:\My Documents\cell_apps\bitpim\gui.py", line 942, in OnDataGetPhoneResults
self.smswidget.populatefs(results)
File "f:\My Documents\cell_apps\bitpim\sms_tab.py", line 253, in populatefs
self.__save_to_db(dict.get(self.__data_key, {}))
File "f:\My Documents\cell_apps\bitpim\sms_tab.py", line 250, in __save_to_db
self.__main_window.database.savemajordict(self.__data_key, db_rr)
File "F:\My Documents\cell_apps\bitpim\database.py", line 263, in _transactionwrapper
return method(*args, **kwargs)
File "F:\My Documents\cell_apps\bitpim\database.py", line 507, in savemajordict
self.sql(" ".join(cmd), [timestamp]+[record[r] for r in rk])
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position 152: ordinal not in range(128)
______________________________________________________________________
Speed up your surfing with NetZero HiSpeed.
Now includes pop-up blocker!
Only $14.95/month -visit http://www.netzero.com/surf to sign up today!
Thanks,
-Joe Pham
An unexpected exception has occurred.
Please see the help for details on what to do.
Traceback (most recent call last):
File "f:\My Documents\cell_apps\bitpim\gui.py", line 1256, in OnCallback
event()
File "f:\My Documents\cell_apps\bitpim\gui.py", line 122, in __call__
return apply(self.cb, self.args, self.kwargs)
File "f:\My Documents\cell_apps\bitpim\gui.py", line 79, in __call__
apply(self.method, self.args+args, d)
File "f:\My Documents\cell_apps\bitpim\gui.py", line 942, in OnDataGetPhoneResults
self.smswidget.populatefs(results)
File "f:\My Documents\cell_apps\bitpim\sms_tab.py", line 253, in populatefs
self.__save_to_db(dict.get(self.__data_key, {}))
File "f:\My Documents\cell_apps\bitpim\sms_tab.py", line 250, in __save_to_db
self.__main_window.database.savemajordict(self.__data_key, db_rr)
File "F:\My Documents\cell_apps\bitpim\database.py", line 263, in _transactionwrapper
return method(*args, **kwargs)
File "F:\My Documents\cell_apps\bitpim\database.py", line 507, in savemajordict
self.sql(" ".join(cmd), [timestamp]+[record[r] for r in rk])
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa1 in position 152: ordinal not in range(128)
______________________________________________________________________
Speed up your surfing with NetZero HiSpeed.
Now includes pop-up blocker!
Only $14.95/month -visit http://www.netzero.com/surf to sign up today!