We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59467fc commit 98e6231Copy full SHA for 98e6231
yarGen.py
@@ -309,7 +309,9 @@ def extract_strings(fileData):
309
# WIDE
310
for ws in wide_strings:
311
# Decode UTF16 and prepend a marker (facilitates handling)
312
- strings.append(("UTF16LE:%s" % ws.decode('utf-16')).encode('utf-8'))
+ wide_string = ("UTF16LE:%s" % ws.decode('utf-16')).encode('utf-8')
313
+ if wide_string not in strings:
314
+ strings.append(wide_string)
315
for string in strings:
316
# Escape strings
317
if len(string) > 0:
0 commit comments