From 5606baf4e604d91b62813adedd23d1eb617a98b7 Mon Sep 17 00:00:00 2001 From: "androsh7@gmail.com" Date: Sun, 1 Mar 2026 22:14:40 -0500 Subject: [PATCH] Added argument to set default encoding to utf-8 --- vol.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vol.py b/vol.py index c49d5985d..8c9701bfd 100755 --- a/vol.py +++ b/vol.py @@ -5,7 +5,12 @@ # which is available at https://www.volatilityfoundation.org/license/vsl-v1.0 # +import sys + import volatility3.cli if __name__ == "__main__": + # Ensure stdout/stderr use UTF-8 to avoid output encoding errors on Windows systems + sys.stderr.reconfigure(encoding="utf-8") + sys.stdout.reconfigure(encoding="utf-8") volatility3.cli.main()