sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
steve mettraux's Avatar

how to decode iso-8859-1


Question posted by: steve mettraux (Guest) on November 12th, 2005 02:09 AM
I have this kind of string,

dim myString as string = " =E0 ton essai d'=E9tablir une"

i know the kind of encoding, here I have iso-8859-1

dim charset as string ="iso-8859-1"

how to decode it with a component of the .NET Framework?

thanks
steve


3 Answers Posted
Chris Lovett's Avatar
Guest - n/a Posts
#2: Re: how to decode iso-8859-1

Encoding e = Encoding.GetEncoding("iso-8859-1");
e.GetChars(byte[] buffer...);


"steve mettraux" <steve@mettraux.com> wrote in message
news:%23q3JWwEuDHA.1060@TK2MSFTNGP12.phx.gbl...[color=blue]
> I have this kind of string,
>
> dim myString as string = " =E0 ton essai d'=E9tablir une"
>
> i know the kind of encoding, here I have iso-8859-1
>
> dim charset as string ="iso-8859-1"
>
> how to decode it with a component of the .NET Framework?
>
> thanks
> steve
>
>[/color]


steve mettraux's Avatar
Guest - n/a Posts
#3: Re: how to decode iso-8859-1

It's seems not working, it brings back exactly the same string.
The result should be : "ŕ ton essai d'établir une"


"Chris Lovett" <chris@!nospam!.net> schrieb im Newsbeitrag
news:vso8ii52pjtqfc@corp.supernews.com...[color=blue]
> Encoding e = Encoding.GetEncoding("iso-8859-1");
> e.GetChars(byte[] buffer...);
>
>
> "steve mettraux" <steve@mettraux.com> wrote in message
> news:%23q3JWwEuDHA.1060@TK2MSFTNGP12.phx.gbl...[color=green]
> > I have this kind of string,
> >
> > dim myString as string = " =E0 ton essai d'=E9tablir une"
> >
> > i know the kind of encoding, here I have iso-8859-1
> >
> > dim charset as string ="iso-8859-1"
> >
> > how to decode it with a component of the .NET Framework?
> >
> > thanks
> > steve
> >
> >[/color]
>
>[/color]


Oleg Tkachenko's Avatar
Guest - n/a Posts
#4: Re: how to decode iso-8859-1

steve mettraux wrote:
[color=blue]
> It's seems not working, it brings back exactly the same string.
> The result should be : "ŕ ton essai d'établir une"[/color]
[color=blue][color=green][color=darkred]
>>>dim myString as string = " =E0 ton essai d'=E9tablir une"[/color][/color][/color]

Actually above seems like quoted printable encoded text, not just
iso-8859-1 encoded one.
--
Oleg Tkachenko
XML Insider
http://www.tkachenko.com/blog

 
Not the answer you were looking for? Post your question . . .
196,849 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,849 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors