JHServer.UrlEncode Method

DCSoft.DBUtilityGeneric

JHServerUrlEncode Method
将字符串转换为 URL 编码的字符串

Namespace: DCSoft.Utility.Web
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static string UrlEncode(
	string str
)

Parameters

str
Type: SystemString
要编码的字符串

Return Value

Type: String
返回转换后的字符串
Remarks
和 HttpUtility.UrlEncode 的区别在于空格字符的编码,HttpUtility.UrlEncode 会将空格字符编码为 +
See Also