Closed wwwab123 closed 3 months ago
Unfortunately this is a limitation in YARA itself, which doesn't support unicode file paths. This limitation is hard to fix, but the alternative is doing something like:
with open('Path/to/file', 'r') as f:
rule.match(data=f.read())
As I mentioned in the title, I found that the match() function of the yara-python library does not work properly in special paths containing some languages. I hope it can be compatible with paths containing these languages.