For this purpose there are other subclasses as follwoing too:
System.Text.ASCIIEncoding
System.Text.UnicodeEncoding
System.Text.UTF7Encoding
System.Text.UTF8Encoding
It's also possible to keep default encoding to get your string:
...
System.Text.Encoding myEnc = System.Text.Encoding.Default;
string strMacCmdPrm = myEnc.GetString( theByteArray );
...
No comments:
Post a Comment