我正在开发一个阿拉伯语JSON服务,我正在使用Newtonsoft Json库。 我想知道是否有办法将字符串转换为它的代码点表示,如“\ u005C”
目前我正在使用JsonConverter
Response.Filter = new DeflateStream(Response.Filter, CompressionMode.Compress);
Response.AppendHeader("Content-Encoding", "deflate");
Response.Cache.VaryByHeaders["Accept-encoding"] = true;
Response.ContentEncoding = UTF8Encoding.UTF8;
Response.ContentType = "application/json";
Response.Write(JsonConvert.SerializeObject(obj, Formatting.None));
Response.Cache.SetCacheability(HttpCacheability.NoCache);