javascript - Converting Base64 to uint8Array in pdfmake makes tamilstrings to shuffle -


i have created example using pdf make in have used tamil language displaying contents in pdf when run code tamil strings shuffled.i have used custom tamil fonts it.why strings getting shuffled when created.can tell wrong in conversion of base64 strings uint8array?

function base64touint8array (base64) {   $log.log('base64 is', base64);   var raw = atob(base64);   var uint8array = new uint8array(raw.length);   (var = 0; < raw.length; i++) {     uint8array[i] = raw.charcodeat(i);   }   $log.log('uint8array is', uint8array);   return uint8array; } 


Comments

Popular posts from this blog

vue.js - Create hooks for automated testing -

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

serial port - hub4com OVERRUN Error -