Html UTF to C# UTF

  • Thread starter Thread starter Yehia A.Salam
  • Start date Start date
Y

Yehia A.Salam

hello,

I'm trying to decode a string with this format
"الانفال" to a unicode format,
I tried the following code but it doesn't work:

rname = rname.Replace("&#", @"\u");
rname = rname.Replace(";", "");

I heard also of HttpUtilties class but it seems it's not available when you
create a Windows Application project with c#.

Thanks In Advance
Yehia A.Salam
 
hello,

I'm trying to decode a string with this format
"الانفال" to a unicode format,
I tried the following code but it doesn't work:

rname = rname.Replace("&#", @"\u");
rname = rname.Replace(";", "");

I heard also of HttpUtilties class but it seems it's not available when you
create a Windows Application project with c#.

In your Winforms app, simply add a reference to System.Web.DLL and then
use System.Web.HttpServerUtility.UrlDecode method.
 
Back
Top