Wednesday, 21 August 2013

how to convert special chars with Unicode?

how to convert special chars with Unicode?

How can I convert string with special chars, like this:
ma³oletni => ma\u0142oletni
Where ³ converts into \u0142 (the same with rest special chars).
I've tried with
System.Text.UnicodeEncoding encoding = new System.Text.UnicodeEncoding();
but it returns strange results.
How can I convert it?

No comments:

Post a Comment