Skip to content

TSlivede/utf8-regex-encode-decode-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

utf8-regex-encode-decode-js

Utf8 string encode/decode using regular expressions

Code is based on https://gist.github.com/MarcelloDiSimone/933a13c6a5b6458ce29d972644bb5892

Can encode javascript Unicode string into utf-8 multiple single-byte characters. The same can be achieved in JavaScript by unescape(encodeURIComponent(str)), but this approach may be useful in other languages.

Can decode utf-8 encoded string back into a regular javascript string. The same can be achieved JavaScript by decodeURIComponent(escape(str)), but this approach may be useful in other languages.

About

Utf8 string encode/decode using regular expressions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published