public Dictionary <string, object> DecodeUrlEncode(string code, string encType) { string text = string.Empty; if (encType == "ncr") { text = EncodeHelper.ConvertFromNCR(code); } else { var enc = Encoding.GetEncoding(encType.Replace("utf8", "utf-8")); text = HttpEncoder.UrlDecode(code, enc); } return(encode(text)); }