I have a html text that provides from a server. but persian letters does not appears correctly. for example like this :
جشن نوروز/جشن سال نو
I have used this extension method from https://stackoverflow.com/a/11300580 to decode this text
public static string DecodeFromUtf8(this string utf8String)
{
// copy the string as UTF-8 bytes.
byte[] utf8Bytes = new byte[utf8String.Length];
for (int i = 0; i < utf8String.Length; ++i)
{
utf8Bytes[i] = (byte)utf8String[i];
}
return Encoding.UTF8.GetString(utf8Bytes, 0, utf8Bytes.Length);
}
but It will return this :
جش� � ��ر��ز/جش� سا�\u001e � ��
I am using .net framework 4.5 . if anyone help me how to crack this I would be appreciated.