这个字符串的编码是什么?

use*_*982 3 c# string encoding decoding

如何检测此字符串的编码:

    "http://sinapress.ir/resize/directory/مجامع علمی/1439280705853632083.jpg/263/171"
Run Code Online (Sandbox Code Playgroud)

原始字符串是:

    "http://sinapress.ir/resize/directory/????? ????/1439280705853632083.jpg/263/171"
Run Code Online (Sandbox Code Playgroud)

以及如何在 c# 中将第一个字符串转换为第二个字符串?

Ore*_*aki 5

您可以使用 HttpUtility.HtmlDecode

var urlToDecode = "http://sinapress.ir/resize/directory/مجامع علمی/1439280705853632083.jpg/263/171";
Console.WriteLine(HttpUtility.HtmlDecode(urlToDecode));
Run Code Online (Sandbox Code Playgroud)