how to make cygwin tar output proper unicode letters instead of shashed values?

拟墨画扇 提交于 2019-12-25 03:43:37

问题


I have a *.tar.gz file that have inside occasionally some names with non ascii letters.

for example when tar encounter a file containing word: naïve it outputs: na\303\257ve

Is there any swich, or tool to convert these slashed values to a proper letter ?


回答1:


http://www.gnu.org/software/tar/manual/tar.html

By default GNU tar attempts to unquote each file or member name, replacing escape sequences according to the following table: ...

This default behavior is controlled by the following command line option:

--unquote
    Enable unquoting input file or member names (default).

--no-unquote
    Disable unquoting input file or member names.

In other words, see if "--no-unquote" is an option for your version of Cygwin.

PS: Which version of Cygwin tar are you using?



来源:https://stackoverflow.com/questions/29420963/how-to-make-cygwin-tar-output-proper-unicode-letters-instead-of-shashed-values

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!