jraavis icon

Unicode to Text

jraavis | PRO | 03/03/19 08:36:58 PM UTC | 0 ⭐ | 404 👁️ | Never ⏰ | []
JavaScript |

200 B

|

None

|

0 👍

/

0 👎

function unicodeToChar(text) {
   return text.replace(/\\u[\dA-F]{4}/gi, 
          function (match) {
               return String.fromCharCode(parseInt(match.replace(/\\u/g, ''), 16));
          });
}

Comments