Remove “empty” character from String

后端 未结 9 1988
不思量自难忘°
不思量自难忘° 2020-12-14 10:42

I\'m using a framwork which returns malformed Strings with \"empty\" characters from time to time.

\"foobar\" for example is represented by: [,f,o,o,b,a,r]

T

9条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-14 11:41

    trim left or right removes white spaces. does it has a colon before space?

    even more: a=(long) string[0]; will show u the char code, and u can use replace() or substring.

提交回复
热议问题