首页  编辑  

Unicode字符表达式还原

Tags: /C#/字符串处理/   Date Created:

string S = @"\u914d\u7f6e\u6587\u4ef6\u6ca1\u6709\u627e\u5230" ;

string [] vList = S . Split( new string [] { @"\u" },

    StringSplitOptions . RemoveEmptyEntries);

S = "" ;

foreach ( string T in vList) S += ( char ) Convert . ToInt32(T, 16 );