阅读背景:

问题在java中修剪日语字符串

来源:互联网 

I have the following string (japanese) " ユーザー名" , the first character is "like" whitespace but its number in unicode is 12288, so if I do " ユーザー名".trim() I get the same string (trim doesn't work). If i do trim in c++ it works ok. Does anyone know how to solve this issue in java? Is there a special trim method for unicode?I have the following string (japanese) " ユーザー名"




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: