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
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]
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]
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
|
|
|
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.
Top Community Contributors
|