Skip to content

arahaya/utf8.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

utf8.js

Convert JavaScript strings to UTF8 byte arrays.

Usage

// convert string to utf8 bytes
var bytes = utf8.stringToBytes('string to convert');
console.log(bytes);

// convert utf8 bytes back to a string
var str = utf8.bytesToString(bytes);
console.log(str);

About

Convert JavaScript strings to a UTF8 byte array

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published