We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82703b1 commit 812e56bCopy full SHA for 812e56b
1 file changed
PyHexEncoder.py
@@ -6,6 +6,6 @@
6
parser.add_argument('file', type=str, help='file')
7
args = parser.parse_args()
8
9
-with open(args.file, "r") as file:
10
- with open(f"{os.path.basename(args.file).replace('.py', '')}.bin", "a") as bin_file:
+with open(args.file, "r", encoding="utf-8") as file:
+ with open(f"{os.path.basename(args.file).replace('.py', '')}.bin", "a", encoding="utf-8") as bin_file:
11
bin_file.write(binascii.hexlify(file.read().encode()).decode())
0 commit comments