Re: Html UTF to C# UTF

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



In article <956D9357-F9A3-4EF4-8D50-1477ED753659@xxxxxxxxxxxxx>,
yehiaeg@xxxxxxxxxxx says...
hello,

I'm trying to decode a string with this format
"&#1575;&#1604;&#1575;&#1606;&#1601;&#1575;&#1604;" 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.

--
Patrick Steele
http://weblogs.asp.net/psteele
.



Relevant Pages

  • Re: Html UTF to C# UTF
    ... I'm trying to decode a string with this format ... I heard also of HttpUtilties class but it seems it's not available when you ...
    (microsoft.public.dotnet.general)
  • Html UTF to C# UTF
    ... I'm trying to decode a string with this format ... I heard also of HttpUtilties class but it seems it's not available when you create a Windows Application project with c#. ...
    (microsoft.public.dotnet.general)
  • Re: Decoding extended ascii base64 string
    ... How is the string encoded in the client application? ... You'll need to know what the format is before you can ... > try to decode this string in the webservice using: ... > The service throws an invalid character error. ...
    (microsoft.public.dotnet.security)
  • printing bits ... the right way
    ... \param str The array of characters where the resulting string is to ... \param format A custom format string specific to converting ... render an integer type into a binary string. ...
    (comp.lang.c)
  • Re: Date format detection
    ... Specifies the locale for which the date string is to be formatted. ... date format for this locale. ... the system default-date format for the specified locale. ... be enclosed within single quotation marks in the date format picture. ...
    (borland.public.delphi.thirdpartytools.general)