Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
There been a couple of questions on bytes32 to string in solidity itself. What's the best way to convert a solidity bytes32 return value to a string in JS?
you'll have a good live example of what you want in the browser-solidity,
especially in line 395 of universal-dapp.js
// decode data
var decodedObj = EthJS.ABI.rawDecode(outputTypes, result.vm.return);
// format decoded data
decodedObj = EthJS.ABI.stringify(outputTypes, decodedObj);
Required, but never shown