Pedro Pedro - 1 year ago 213
JSON Question

C# Convert Unicode chars

is it possible to convert a string like "\u00e8" (Got it by reading a WebRequestResponse with Streamreader) to it's unicode char(รจ)?
Tried many things with Encoding, but nothing works.

Answer Source

You can use Regex.Unescape(), which unescapes any escape sequences that are valid for a Regex (including \uXXXX). Note that it also unescapes other sequences like \t, \n, and \[.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download