2

I have a text of strings that looks like:

%D0%A1%D1%82%D1%80%D0%BE%D0%BA%D0%B0

How can I convert it to actual characters? If I'm understand it right it's UTF char codes.

Jcf
  • 201
  • 2
  • 8

2 Answers2

8

It is URL-encoded:

var s = System.Web.HttpUtility.UrlDecode("%D0%A1%D1%82%D1%80%D0%BE%D0%BA%D0%B0");

Produces:

"Строка"

Which is Russian for "row" or "string", I think.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536
1

See the accepted answer in this post, you just need to change their "-" to your "%"

Community
  • 1
  • 1
musefan
  • 47,875
  • 21
  • 135
  • 185