S
S
sivabur2015-12-05 20:29:15
.NET
sivabur, 2015-12-05 20:29:15

How to decode json C# encoding "\\u2605 Flip Knife"?

example
\\u2605 Flip Knife
\uXXXX
Tried 2 different methods without success.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sivabur, 2015-12-05
@sivabur

Found solutions to the problem of decoding (decoding) \uXXXX

var str = @"ESPA\u00d1A - Espa\u2122";
str = str.Replace("\\\\", "\\");  //Replace // -> /
Console.WriteLine("Docode: " + System.Text.RegularExpressions.Regex.Unescape(str));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question