Hey folks, I need to sniff in Pyhton using pyShark on Windows. On UNIX systems I didn't have any problems. On Windows a strange error occurs:
I work on a 32 bit Python version. I even tried - I know that's very dangerous -
right in front of my pyshark call and in the parent processes. Without success. Hope somebody is more familiar with pyShark running on Win. Thanks in advance! asked 06 Apr '16, 22:31 elektm edited 06 Apr '16, 23:26 Guy Harris ♦♦ |
One Answer:
After putting a lot of effort into the problem and spending a lot of time on searching for the error on the wrong place, I finally managed it to work. It seems to be the problem, that the incoming data (in XML format) is not encoded the right way and pyshark does not cast to 'UTF-8'. While debugging it posed that it appeared to be in 'latin-1'. I did the following:
Took a lot of work and energy, but finaly solved for me! answered 14 Apr '16, 23:52 elektm edited 14 Apr '16, 23:55 |