Unicode与中文的转换-javascript

        var classObj=
             {
               ToUnicode:function(str) 
               {
                return escape(str).replace(/%/g,"\").toLowerCase();
               },
               UnUnicode:function(str)
               {
                return unescape(str.replace(/\/g, "%"));
               },
              copyingTxt:function(str)
              {
               document.getElementById(str).select(); 
               document.execCommand("Copy"); 
              }
            };

相当有用,java的转换

原文地址:https://www.cnblogs.com/renzku/p/6096592.html