我♪在zsh主题的提示中使用字符。但是在tmux中,我的提示很奇怪,显示了额外的空格,如下所示: ♪ ~ I can type from here ♪ ~ Instead of here like in zsh, and sometimes when I do stuff like cd ♪ ~ cd ~ ♪ ~ cdcd / ♪ ~ ^^These 2 chars just show up but are not actually part of command and not delete-able …
我想一个转换右单引号一个撇号使用tr。 tr "`echo -e '\xE2\x80\x99'`" "`echo -e '\x27'`" < a > b 给定一个名为UTF-8编码的文件a,其中包含以下示例: We’re not a different species “All alone?” Jeth mentioned. OS X使用BSD tr并产生不错的结果: We're not a different species “All alone?” Jeth mentioned. Ubuntu使用GNU tr并产生以下讨厌的结果: We'''re not a different species ''<9C>All alone?''<9D> Jeth mentioned. 如何在Ubuntu中完成此转换?