我正在开发一个阿拉伯语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);
实际上可以遍历字符串的字符并转换它们。比如这个