String UTF Encode and Decode - Node.js String

Node.js examples for String:Unicode

Description

String UTF Encode and Decode

Demo Code

String.utf8Encode = function(src)
{
  return unescape( encodeURIComponent( src ) );
};

String.utf8Decode = function(src)
{
  return decodeURIComponent( escape( src ) );
};

Related Tutorials