Hi,
I've started adding support for my phone, and managed to get something
preliminary working. I'm extracting data from the phonebook, but when it
gets to display the actual records (after running Phone.getphonebook) I
get an exception when displaying Hebrew (cp-1255 or iso-8859-8)
charachters.
The data in colums that have only 0-127 charachter codes (such as my
dummy group names) gets displayed properly.
So, I guess I need to tell it what encoding I'm using, but I could not
find where to do so. Can anyone direct me?
My exception:
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/wx/_core.py", line 10604, in
<lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "/home/yosef/bitpim/guihelper.py", line 115, in _busywrapper
return method(*args, **kwargs)
File "/home/yosef/src/bitpim/phonebook.py", line 1641, in DoMerge
self._DoMerge(progdlg)
File "/home/yosef/src/bitpim/phonebook.py", line 1737, in _DoMerge
self.table.OnDataUpdated()
File "/home/yosef/bitpim/guihelper.py", line 115, in _busywrapper
return method(*args, **kwargs)
File "/home/yosef/src/bitpim/phonebook.py", line 1397, in OnDataUpdated
self.main.OnCellSelect()
File "/home/yosef/src/bitpim/phonebook.py", line 1782, in OnCellSelect
self.resultpreview.ShowEntry(self.resultdata[resultid])
File "/home/yosef/src/bitpim/phonebook.py", line 163, in ShowEntry
self.SetPage(text)
File "/home/yosef/bitpim/bphtml.py", line 77, in SetPage
wx.html.HtmlWindow.SetPage(self,text)
File "/usr/lib/python2.3/site-packages/wx/html.py", line 973, in SetPage
return _html.HtmlWindow_SetPage(*args, **kwargs)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position
462: ordinal not in range(128)
And not to be only on the asking side, I'm attaching a Makefile I wrote
to replace makepackets.sh. The advantage of it is that if you're only
updating your own protocol, there's no need to remake all other
protocols (not really an issue now, but I'm a forward thinker).
Thanks,
Yosef.
--
Keep on rocking in a free world!