string menuStr = "";// " 消息内容"; Encoding encode = System.Text.Encoding.GetEncoding("GB2312"); //编码,否则会出现json中文乱码 using (StreamReader sr = new StreamReader(HttpContext.Server.MapPath("/Json/sendmessage.json"), encode)) { menuStr = sr.ReadToEnd(); }