Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何解码到';在VB.net中?_Vb.net - Fatal编程技术网

如何解码到';在VB.net中?

如何解码到';在VB.net中?,vb.net,Vb.net,我使用以下代码: Dim str= Web.HttpUtility.HtmlDecode("'") 但它不起作用。 结果:str=“'””在有效HTML 4实体的官方列表中,但'不在其中 因此,您可能应该在解码之前进行更正(yourString.Replace(“'”,“”))。您的代码在我的机器上确实转换了此内容……您是否在Visual Studio中添加了System.Web作为引用?只有此字符“'”或其他字符必须替换?@DT所

我使用以下代码:

 Dim str= Web.HttpUtility.HtmlDecode("'")
但它不起作用。 结果:
str=“'”
在有效HTML 4实体的官方列表中,但
'
不在其中


因此,您可能应该在解码之前进行更正(
yourString.Replace(“'”,“”)
)。

您的代码在我的机器上确实转换了此内容……您是否在Visual Studio中添加了System.Web作为引用?只有此字符“'”或其他字符必须替换?@DT所有规范中不存在的字符,我想:(可能是任何人)。