点击或拖拽改变大小

SoftBasicUrlEncode 方法

将字符串编码为URL可以识别的字符串,中文会被编码为%开头的数据,例如 中文 转义为 %2F%E4%B8%AD%E6%96%87
Encoding a string as a URL-recognizable string Chinese encoded as data that begins with %, such as 中文 escaped as %2F%E4%B8%AD%E6%96%87

命名空间:  HslCommunication.BasicFramework
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static string UrlEncode(
	string str,
	Encoding e
)

参数

str
类型:SystemString
等待转换的字符串数据
e
类型:System.TextEncoding
编码信息,一般为 UTF8

返回值

类型:String
编码之后的结果
参见