How to handle Unicode contained in json C #,
Public static class StringExtension {# region unicode Character escape // <summary> // convert any escape character in the input string. For example: unicode \ u8be5 // </summary> /// <param name = "str"> </param> /// <returns> </returns> public static string unicodeDencode (this string str) {if (string. isNullOrWhiteSpace (str) return str; return Regex. unescape (str );} /// <summary> /// unicode encode the string /// </summary> /// <param name = "str"> </param> // <returns> </returns> public static string UnicodeEncode (this string str) {if (string. isNull OrWhiteSpace (str) return str; StringBuilder strResult = new StringBuilder (); if (! String. isNullOrEmpty (str) {for (int I = 0; I <str. length; I ++) {strResult. append ("\ u"); strResult. append (int) str [I]). toString ("x4");} return strResult. toString () ;}# endregion}