How to have a browser gunzip an Ajax fetched gziped text file?

This question already has an answer here:

  • Fetching zipped text file and unzipping in client browsers, feasible in Javascript? 3 answers

  • letting the browser uncompress it with Content-Encoding: gzip is probably the best. In case it doesn't work for your scenario, there are many LZW implementations in javascript like: https://gist.github.com/revolunet/843889

    you might have to try out different implementations, i didn't check any of them myself.

    链接地址: http://www.djcxy.com/p/69312.html

    上一篇: 获取iOS视图的实际尺寸

    下一篇: 如何让浏览器gunzip获取一个Ajax获取的gziped文本文件?