what is the symbol that looks like space, but not a space? (not a  )

妖精的绣舞 提交于 2019-12-23 16:55:04

问题


I'm talking NOT about   but about another symbol " " that looks like " " even in text area, but that's another symbol (splitting the string by space symbol does NOT split "hello world" into two words).


回答1:


  or one of those below maybe?

http://www.w3.org/TR/html4/sgml/entities.html

<!-- General Punctuation -->
<!ENTITY ensp    CDATA "&#8194;" -- en space, U+2002 ISOpub -->
<!ENTITY emsp    CDATA "&#8195;" -- em space, U+2003 ISOpub -->
<!ENTITY thinsp  CDATA "&#8201;" -- thin space, U+2009 ISOpub -->



回答2:


in the old time of DOS, char 255 was a blank character




回答3:


You may have a look at Unicode whitespace characters, because there are plenty of them




回答4:


just echo your string contains whatever special characters using rawurlencode() function:

echo rawurlencode("whatever string with any \05 \02 weird symbols");

and see their codes preceded with % sign



来源:https://stackoverflow.com/questions/10319539/what-is-the-symbol-that-looks-like-space-but-not-a-space-not-a-nbsp

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