修改发送指令时的编码规则 改为适配中文的
This commit is contained in:
16
Encode/Encode.cs
Normal file
16
Encode/Encode.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Encode
|
||||
{
|
||||
public static class Encode
|
||||
{
|
||||
public static byte[] GetGb2312(string message)
|
||||
{
|
||||
return Encoding.GetEncoding("gb2312").GetBytes(message);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user