Ask Your Question
0

Error: File "C:\Development\wireshark\tools\make-plugin-reg.py", line 78, in <module> 1> contents = file.read()

asked 2019-05-31 13:43:51 +0000

Priyanka gravatar image

I am trying to add my own custom plugin which is written in C. Previously I had a lot of warning as "The file contains a character starting at offset 0x4982 that is illegal in the current source character set (codepage 65001)"

So I changed my file encoding type to UTF-8 in the editor.

Now after doing this I am getting error as

File "C:\Development\wireshark\tools\make-plugin-reg.py", line 78, in <module> contents = file.read() File "C:\Users\KS-Lab\AppData\Local\Programs\Python\Python37\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 31746: character maps to <undefined> 130>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" e xited with code 1. [C:\Development\wsbuild32\plugins\epan\homematic\homematic.vcxproj]

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-05-31 14:03:21 +0000

grahamb gravatar image

Presumably this is subsequent to the same question as asked here, why create a new user and repeat the question? The answer is the same, remove the invalid UTF8 characters from the file. Simply changing your editor encoding might not help, as it seems so in your case.

Why not open the file and see what the character is at offset 31746 in the file?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-05-31 13:43:51 +0000

Seen: 261 times

Last updated: May 31 '19