wordfence-cli icon indicating copy to clipboard operation
wordfence-cli copied to clipboard

Handle UTF-8 output for reports

Open mmaunder opened this issue 3 months ago • 0 comments

Fixes #327.

Summary

  • open report output files with an explicit UTF-8 encoding to support non-ASCII characters
  • add a regression test that verifies the UTF-8 encoding flag is passed to the file handle

Testing

  • ./venv/bin/python -m unittest discover -s wordfence -t .
  • ./venv/bin/python -m flake8 --exclude venv --require-plugins pycodestyle,flake8-bugbear

mmaunder avatar Sep 23 '25 03:09 mmaunder