当前位置: 代码迷 >> WinCE >> wince C#发送UTF8至PC机解决办法
  详细解决方案

wince C#发送UTF8至PC机解决办法

热度:74   发布时间:2016-04-28 12:44:15.0
wince C#发送UTF8至PC机
            fsSend.Read(SenddataByte, 0, SendLeng);
            Decoder dec = Encoding.UTF8.GetDecoder();
            dec.GetChars(SenddataByte, 0, SenddataByte.Length, Senddata, 0);
            try
            {
                streamWriter.Write(data, 0, len);//写入流 
                streamWriter.Flush();               //刷新当前数据流中的数据
                return true;
            }
            catch (Exception err)
            {
                return false;
            }

       通过C# TCP的发送,char[] data
       PC机那边如何解码
------最佳解决方案--------------------
MultiButeToWideChar
------其他解决方案--------------------
该回复于2012-09-07 10:45:51被版主删除
  相关解决方案