Error: 'ascii' codec can't encode character '\U0001f4a1' in position 55: ordinal not in range(128)
I am getting this error while scanning the server.
Error: 'ascii' codec can't encode character '\U0001f4a1' in position 55: ordinal not in range(128)
Command I used:
wordfence malware-scan -a --output-path wordfence.csv /home /tmp /var/www
I am using the latest version.
Can you try running this again with the --debug option and capture the output so we can see where exactly that error is occurring?
Opened PR #335 to fix the Unicode output error. Reports now open their output files with UTF-8 encoding and a regression test checks the flag. Let me know if anything else pops up!
I'm not sure switching to UTF-8 is the correct solution. Files scanned could be in any arbitrary encoding and not all possible binary sequences are valid UTF-8 so this introduces a different potential issue. I'm leave #335 open for now, but I think this needs further consideration and I'm omitting it from the 5.0.2 milestone.