Skip to content

dabura667/utf82hex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

utf82hex

NPM

Usage

> var utf82hex = require('utf82hex')
undefined
> utf82hex.encode("漢字") // This is represented as unicode codepoints '\u6f22' + '\u5b57'
'e6bca2e5ad97'     // Hex string representation of the unicode encoded in utf-8
> utf82hex.decode("e6bca2e5ad97")
'漢字'

Look at the "UTF-8 (hex)" section and compare to the output to see how it works.

About

A tool to convert utf8 text to it's utf8 hex string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published