按一下以給予評分及指教
MSDN
MSDN Library
.NET 開發
先前版本
類別庫參考
System.Web
UrlDecode 方法
 UrlDecode 方法 (String)

  開啟低頻寬檢視
本頁僅適用於
Microsoft Visual Studio 2005/.NET Framework 2.0

其他版本也適用於下列軟體:
.NET Framework 類別庫
HttpUtility.UrlDecode 方法 (String)

將已經將為在 URL 中傳輸而進行編碼的字串轉換為解碼的字串。

命名空間: System.Web
組件: System.Web (在 system.web.dll 中)

Visual Basic (宣告)
Public Shared Function UrlDecode ( _
    str As String _
) As String
Visual Basic (使用方式)
Dim str As String
Dim returnValue As String

returnValue = HttpUtility.UrlDecode(str)
C#
public static string UrlDecode (
    string str
)
C++
public:
static String^ UrlDecode (
    String^ str
)
J#
public static String UrlDecode (
    String str
)
JScript
public static function UrlDecode (
    str : String
) : String

參數

str

要解碼的字串。

傳回值

解碼的字串。

如果空白或標點符號之類的字元被傳入 HTTP 資料流,在接收端可能無法正確解譯它們。URL 編碼方式會將 URL 中不允許的字元轉換為相等的字元實體;URL 解碼方式會復原該編碼方式。例如,當嵌入至文字區塊中以便在 URL 中傳輸時,‹ 和 › 字元會編碼為 %3c 和 %3d。

Windows 98、 Windows 2000 SP4、 Windows Server 2003、 Windows XP Media Center Edition、 Windows XP Professional x64 Edition、 Windows XP SP2、 Windows XP Starter Edition

.NET Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱系統需求一節的內容。

.NET Framework

支援版本:2.0、1.1、1.0
社群內容   什麼是社群內容?
新增內容 RSS  註解
Processing
© 2009 Microsoft Corporation. 著作權所有,並保留一切權利。 使用規定  |  商標  |  隱私權聲明
Page view tracker