It's so weird. The printed name is a space, or trim () is used. For the first time, I know there are 160th spaces.
Let's see the code.
System.out.println(StringEscapeUtils.unescapeHtml4(" ").equals(" "));
System.out.println((int)StringEscapeUtils.unescapeHtml4(" ").charAt(0));
System.out.println((int)‘ ‘);
Output:
false
160
32
The original usually see is 32nd number of space Ah!!Web page at the time of submission to the server, the Java String trim method can only handle ASCII 32 spaces, and we need to use Text.replaceall ("[\\s\\u00a0]+$", "" ") to remove spaces. The ASCII code 0 prints out also a space.
It's the number 160th space. The normal 32nd blank will be compressed into a continuous space on the Web page, to indicate that a continuous space can only use this. If you use XHTML and do not define (not a standard XML entity), it is necessary to use & #160; See: Http://en.wikipedia.org/wiki/Character_entity_reference
From for notes (Wiz)
The ASCII No. 160th space of the wonderful flower