Re: Transmitting a 'char' array thru serial port in new C# 2005 Ex
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Mon, 1 Aug 2005 17:38:10 +0100
halukg <halukg@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> I found the current encoding is us-ascii with the following code:
> retval = com.Encoding.EncodingName.ToString();
Right, that makes sense.
> I dont know how to change this encoding to unicode or iso-8859. Could you
> please show me how to do this?
com.Encoding = new Encoding(28591);
will give you ISO-8859-1. However, I would still *strongly* recommend
that you don't try to use this to write binary data.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.
- References:
- Transmitting a 'char' array thru serial port in new C# 2005 Expres
- From: halukg
- Re: Transmitting a 'char' array thru serial port in new C# 2005 Expres
- From: Tedb
- Re: Transmitting a 'char' array thru serial port in new C# 2005 Expres
- From: Jon Skeet [C# MVP]
- Re: Transmitting a 'char' array thru serial port in new C# 2005 Ex
- From: halukg
- Re: Transmitting a 'char' array thru serial port in new C# 2005 Ex
- From: Jon Skeet [C# MVP]
- Re: Transmitting a 'char' array thru serial port in new C# 2005 Ex
- From: Tedb
- Re: Transmitting a 'char' array thru serial port in new C# 2005 Ex
- From: halukg
- Transmitting a 'char' array thru serial port in new C# 2005 Expres
- Prev by Date: Re: 2 Questions about Crystal reports
- Next by Date: xml to Database
- Previous by thread: Re: Transmitting a 'char' array thru serial port in new C# 2005 Ex
- Next by thread: Re: Transmitting a 'char' array thru serial port in new C# 2005 Ex
- Index(es):
Relevant Pages
|