From: Alain Dekker on
Thanks Markus!

"Markus Betz" <dd02(a)arcor.de> wrote in message
news:4b75cc73$0$6576$9b4e6d93(a)newsspool3.arcor-online.net...
> On 10-02-12 16:25, Alain Dekker wrote:
>> I'm communicating with a legacy app that does not support UNICODE. In
>> fact,
>> UNICODE is superfluous for this project. Wish there was a way to turn it
>> off, but I know and appreciate why its been done.
>>
>> After your post I found the System.Encoding.ASCII feature and it does
>> what I
>> expect. I presume is is transparently handling the second BYTE of each
>> two-BYTE character, but for display purposes its fine.
>
> Hello Alain,
>
> ASCII is restricted to 7 bits. To get the whole lower byte (i.e. the first
> 256 chars of Unicode) you should use:
>
> System.Text.Encoding.GetEncoding("ISO-8859-1")
>
> or any other code-set your legacy application likes.
>
> Markus