Answers for "string to bytes array"

3

go string to byte array

b := []byte("ABC€")
s := string([]byte{65, 66, 67, 226, 130, 172})
Posted by: Guest on February-17-2020
1

String by byte array in java

String str = "Example String";
 byte[] b = str.getBytes();
Posted by: Guest on September-09-2020

Code answers related to "string to bytes array"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language