C# Webservice 返回格式问题

[WebMethod]  

public void GetQrCodeList(String qrCode)      {  

    Context.Response.Charset = "GB2312"; //设置字符集类型   

     Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");       

     Context.Response.Write("返回值字符串");  

     Context.Response.End();  

   }

将返回值字符串改为此格式。

注:https://www.cnblogs.com/xinweichen/p/4552187.html

猜你喜欢

转载自blog.csdn.net/u013751758/article/details/89400672