First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

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

  • retag add tags

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]

Priyanka's avatar
1
Priyanka
asked 2019-05-31 13:43:51 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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?

grahamb's avatar
23.8k
grahamb
answered 2019-05-31 14:03:21 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer