Encoding encod = Encoding.GetEncoding("GB2312");
byte[] bytes = encod.GetBytes("你好方法");
string den = Convert.ToBase64String(bytes);
byte[] bytes = encod.GetBytes("你好方法");
string den = Convert.ToBase64String(bytes);
GB2312编码转换Base64示例
本文介绍了一个简单的示例,演示如何使用C#将GB2312编码的字符串转换为Base64编码。通过具体代码展示了获取字节并进行Base64编码的过程。
您可能感兴趣的与本文相关的镜像
Kotaemon
Kotaemon 是由Cinnamon 开发的开源项目,是一个RAG UI页面,主要面向DocQA的终端用户和构建自己RAG pipeline

被折叠的 条评论
为什么被折叠?