【发布时间】:2015-06-27 03:20:35
【问题描述】:
我正在尝试在谷歌云近线存储上同步我的本地文件夹,但出现以下错误:
"Caught non-retryable exception while listing file:///var/lib/..: 'ascii' codec can't encode character u'\xe9' in position 170: ordinal not in range(128)
CommandException: Caught non-retryable exception - aborting rsync
Caught ^C - exiting"
请问有什么解决办法吗? 谢谢。
【问题讨论】:
-
在 A-Za-z0-9 中更改文件夹的名称和一些特殊字符也避免使用非常大的文件夹名称,因为这可能会增加路径字符串的长度导致错误。
-
感谢您的回答 anmol_uppal,但我尝试同步“A-Za-z0-9”文件夹名称中的文件,但错误仍然存在。我猜它认为字符编码与 UTF-8 不同。
标签: python character-encoding gsutil