简体   繁体   中英

How do I remove this character <U+2028> from my string in java?

My string is coming as sampleString followed by U+2028 in angular brackets" . Some unwanted characters are coming. From some googling, i found that this is a line separator.

I have tried trimming it using trim function. But, it is still coming.

What are the other alternatives ?

s.replace("\
", "") 按照@joop-eggen 在评论中的建议对我有用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM