I have a string with ASCII characters like
"Tu%C4%9F%C3%A7e%20Kandemir%20-%20G%C3%BCl%C3%BC%20Soldurmam.mp3"
The correct filename is
"Tuğçe Kandemir - Gülü Soldurmam"
How can I convert it?
That string looks like its been encoded for a URL.
You can use UrlDecode
from System.Web.HttpUtility
:
var encoded = "Tu%C4%9F%C3%A7e%20Kandemir%20-%20G%C3%BCl%C3%BC%20Soldurmam.mp3";
var decoded = HttpUtility.UrlDecode(encoded);
Or if you're not using a web application, you can use System.Net.WebUtility.UrlDecode
:
var decoded = WebUtility.UrlDecode(encoded);
Both of these output the following string:
"Tuğçe Kandemir - Gülü Soldurmam.mp3"