发送:
Encoding gb = System.Text.Encoding.GetEncoding("gb2312"); byte[] bytes = gb.GetBytes("中文"); serialPort1.Write(bytes, 0, bytes.Length); 接收: int ilen = serialPort1.BytesToRead; byte[] bytes = new byte[ilen]; serialPort1.Read(bytes, 0, ilen); string xx =System.Text.Encoding.Default.GetString(bytes); //xx="中文";