如何在Windows中解压缩.xml.gz? [英] How to uncompress .xml.gz in windows?

查看:477
本文介绍了如何在Windows中解压缩.xml.gz?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个脚本来为我的网站生成站点地图,然后将文件压缩为.gz.一切似乎都还可以,因为google可以从文件中读取网址.但是当我通过在生产环境(linux)中通过相应的url访问它们来下载它们,然后使用winrar(在我的本地PC中)打开它们时,我得到了垃圾,就像它是一个二进制文件之类的.

I wrote a script to generate the sitemaps for my website, and then compress the files to .gz. Everything seems to be ok, since google can read the urls from the files. But when I download them by accessing them through the corresponding url in the production enviroment (linux), and then open them with winrar (in my local pc), I get garbage, like it was a binary file or something.

同一件事在我的开发环境(Windows)中也能正常工作,因此这似乎是依赖于OS的事情.

The same thing works fine in my development enviroment (windows), so it seems to be an OS-dependant thing.

有什么办法解决这个问题吗?

Any ideas how to solve this?

推荐答案

您是否尝试过7-zip或Winzip.两家公司都根据其制造商的网站提供了对gz的支持.

Have you tried 7-zip or Winzip. Both have support for gz according to their manufacturer websites.

这篇关于如何在Windows中解压缩.xml.gz?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆