且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

字符串中的空格字符很奇怪,不是空格吗?

更新时间:2023-11-14 23:25:58

所以我将字符串粘贴到 http://www.asciivalue.com/index.php ,第二个空格的ASCII值为160.根据

So I pasted the string at http://www.asciivalue.com/index.php, the second space has an ASCII value of 160. According to http://www.ascii-code.com/ this is a space, but it's a non-breaking space, which I believe, the command line isn't too happy about.

删除nbsp可以修复我的脚本,我可以继续我的生活.

Removing the nbsp fixes my script, and I can go on with my life again.

我只是为创建文件的人首先在其中获得nbsp而感到困惑.

I'm just stumped about how the person that created the file got a nbsp in there in the first place.