原code |
---|
encodeURI(‘sudo pip --proxy http://proxy.bdp.idc:80 install apscheduler’) |
“sudo%20pip%20–proxy%20http://proxy.bdp.idc:80%20install%20apscheduler” |
复制后code |
---|
encodeURI(’ sudo pip --proxy http://test install apscheduler’) |
“%20sudo%C2%A0pip%C2%A0–proxy%C2%A0http://test%C2%A0install%C2%A0apscheduler” |
可以看到复制后的code空格%20变成了%C2,这一改变导致的直接后果是复制到linux下命令无辜报错,难以排查,谨以此告诫,代码多手敲!参考资料:https://en.wikipedia.org/wiki/Non-breaking_space |