Start a new topic

utf16 to utf8

 Is there any method can convert utf16 to utf8?

1 Comment

DuoCode Runtime doesn't provide such methods.

Have a look at the following link and these methods:

http://monsur.hossa.in/2012/07/20/utf-8-in-javascript.html

 

function encode_utf8( s ) {
  return unescape( encodeURIComponent( s ) );
}

function decode_utf8( s ) {
  return decodeURIComponent( escape( s ) );
}

 


Hopes this help.

Login or Signup to post a comment