Created
April 17, 2014 00:02
-
-
Save VEINHORN/10943568 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UTF-8 encode / decode by Johan Sundstr?m | |
function encode_utf8( s ) | |
{ | |
return unescape( encodeURIComponent( s ) ); | |
} | |
function decode_utf8( s ) | |
{ | |
return decodeURIComponent( escape( s ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment