I have a set of ascii characters :
68,101,97,108 I want to convert this to a string :
Deal in java script
Im currently doing something like :
var value = "68,101,97,108"; var convertedValue = ""; for (var i = 0; i < value.length; i++) { convertedValue += String.fromCharCode(parseInt(value[i], 2)); } This returns a blank string
String.fromCharCodeexpects an Unicode value as arguments, not ASCII code.String.fromCharCode()has the effect that you think it does without actually doing what you think it does.