Closed qux-bbb closed 7 months ago
This issue is similar to #245.
This is a well known issue that won't be solved anytime soon. But there's an alternative, instead of passing filepath
to rules.match
, read the file from Python and pass data
to rules.match
. This way Python handles the file reading, which should handle unicode path correctly. The problem with passing the file path directly to YARA is that YARA's API doesn't offer unicode support.
Just like this link says, yara-python cannot also scan chinese filename:
https://github.com/VirusTotal/yara/issues/1487
The script:
The error: