2

I have read some text from facebook using graph api and it return me message in form of unicode like this

\u092e\u094b\u0939\u093e\u0932\u0940 \u092e\u0947\u0902

so i want to convert this to text in c#.

like this online app is doing:
http://www.online-toolz.com/tools/text-unicode-entities-convertor.php

4

1 回答 1

7

Use Regex.Unescape:

Regex.Unescape("\u092e\u094b\u0939\u093e\u0932\u0940 \u092e\u0947\u0902")

Results in:

मोहाली में
于 2013-03-30T20:27:57.383 回答