Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
921 views

Read byte represented file in python as utf-8 characters

I have a .txt file generated by a built-in tool in Windows OS that I need to parse in a python script (on a Linux machine if it is relevant). I open the file as such: with open(path, 'r') as spec_file:...
T. Maxx's user avatar
  • 65
0 votes
1 answer
1k views

Append bytes to string in python

I have bytes array as str and want to send it (if I look at it through a debugger, it shows me that File.body is str). For that reason I have to create message to send. request_text += '\n'.join([ ...
Arkady's user avatar
  • 2,207