r/pythonhelp • u/Pink-panther-blog • Feb 13 '23
which encoding system/machanism is used in python binary read?
I need to read file in binary format-->
with open("tex.pdf", mode='br') as file:
fileContent = file.read()
for i in fileContent:
print(i,end=" ")so this provide decimal integers which i think it in ascii format but ascii values only have 0-127
and this output display integers greater that 127 (like 225 108 180 193)
Can someone tell me what encoding/machanism used?
2
Upvotes
0
u/[deleted] Feb 13 '23
[deleted]