Skip to content
/ unicool Public

Library to convert between binary, hexadecimal, UTF-8, and Unicode strings

Notifications You must be signed in to change notification settings

kvu787/unicool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using the library (unicode.js):

// The many forms of € (unicode character point '20ac')

// hex to int 
unicodeConvert('20ac', datatypesEnum.HEX, datatypesEnum.INT) === '8364';
// int to utf8
unicodeConvert('8364', datatypesEnum.INT, datatypesEnum.UTF8) === '111000101000001010101100';
// utf8 to binary
unicodeConvert('111000101000001010101100', datatypesEnum.UTF8, datatypesEnum.BIN) === '10000010101100';
// binary to hex
unicodeConvert('10000010101100;, datatypesEnum.BIN, datatypesEnum.HEX) === '20ac';

About

Library to convert between binary, hexadecimal, UTF-8, and Unicode strings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published