Answers for "python array of bytes to array of strings"

1

how to convert a byte array to string in python

b = bytearray("test", encoding="utf-8")
# here test is encoded into a byte array 
str1 = bytes(b)
# the function bytes decodes it for us !!! 
print(str1)
#thank god for python
Posted by: Guest on November-23-2021

Code answers related to "python array of bytes to array of strings"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language