简体   繁体   中英

how to convert unicode entities to unicode text c#

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

\म\ो\ह\ा\ल\ी \म\े\ं

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

Use Regex.Unescape :

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

Results in:

मोहाली में

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