Trying to inflate a deflated string aHash
.
The following returns non-ascii characters:
(gAppsScript:)
var decodedA = Utilities.base64Decode(aHash,Utilities.Charset.US_ASCII);
var decodedU = Utilities.base64Decode(aHash,Utilities.Charset.US_UTF_8);
Logger.log(Utilities.newBlob(decodedA).getDataAsString());
Logger.log(Utilities.newBlob(decodedU).getDataAsString());
(php:)
$uncompressed = gzinflate($yourFile);
echo $uncompressed;
This page can do it http://www.alderg.com/convert.html but is there a known built in alternative in js/gAppscript/php?
[Update]
This is cross posted in a different SE section and thanks to David for his answer. Following up, base64Decode is different from deflate decode. Is there a way to deflate a string in G-Appscript, perhaps with the UrlFetchApp?