-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Dons
Message 1 in Discussion

Hi,
I�m having a problem with encoding/decoding a string with the ISO-8859-1
codepage�
Check out the code

static string ConvertString(string s)
{
        string sResponse="";
������Encoding e=Encoding.GetEncoding("ISO-8859-1"); //or Encoding e =
Encoding.GetEncoding(28591);
������byte[] bb = e.GetBytes(s);
������for (int i=0;i<bb.Length;i++) 
������{
������  sResponse += Convert.ToChar(bb[i]).ToString();
������}
������return sResponse;
}
�
Now if I send "=?iso-8859-1?Q?HEI_P=C5_DEG?=" I should get "HEI P� DEG"
But nothing happens it just returns back the same string. GetBytes is just
getting the ascii values of the characters.
�
Any ideas, this is urgent�


Regards,
�
Vaibhav Sehgal,
CoTech Software India,
E-Mail : [EMAIL PROTECTED]




-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to