Skip to content

Commit 812e56b

Browse files
authored
Add files via upload
1 parent 82703b1 commit 812e56b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PyHexEncoder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
parser.add_argument('file', type=str, help='file')
77
args = parser.parse_args()
88

9-
with open(args.file, "r") as file:
10-
with open(f"{os.path.basename(args.file).replace('.py', '')}.bin", "a") as bin_file:
9+
with open(args.file, "r", encoding="utf-8") as file:
10+
with open(f"{os.path.basename(args.file).replace('.py', '')}.bin", "a", encoding="utf-8") as bin_file:
1111
bin_file.write(binascii.hexlify(file.read().encode()).decode())

0 commit comments

Comments
 (0)