I am stuck in converting arraybuffer to string in typescript (angular 4 project). Any help is highly appreciated.
Code output is showing string but with this sign - �
Required Output :
PROGRAM "Digitala †rsredovisningen"
Getting Output :
PROGRAM "Digitala �rsredovisningen"
ab2str(arraybuffer) {
return String.fromCharCode.apply(null, new Uint8Array(arraybuffer));
}