Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get bytes from string javascript

var s = "test.message";
var encoder = new TextEncoder();
encoder.encode(s);
// [116, 101, 115, 116, 46, 109, 101, 115, 115, 97, 103, 101]
 
PREVIOUS NEXT
Tagged: #bytes #string #javascript
ADD COMMENT
Topic
Name
7+4 =