I'm using Ethplorer API to retrieve token symbol for particular address. For this purpose I use Get token info:


In most cases I receive readable symbol but for some tokens I get unreadable ones. So the following token address I get the following symbol:


How can I decode to readable string?


Use this method to convert unicode format to string.

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

for more details


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.