经典ASP Request.Form删除空格? [英] Classic ASP Request.Form removes spaces?

查看:370
本文介绍了经典ASP Request.Form删除空格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



即请求(Request)请求(Request) .Form(json)是

  {project:{...,administrator:AlexGorbatchev ,
anonymousViewUrl:null,assets:[],availableFrom:6/10/20104:15PM...
$ b $ p但是,CStr(Request.Form)是

$ $ $ $ $ $ $ $ $ $ json = { project:{__ type:...:Alex Gorbatchev,
anonymousViewUrl:null,assets:[],availableFrom:2010年6月10日4:15 PM...

以下是整个代码:)

 <%@ language =VBSCRIPT%> 
<%
Response.Write(CStr(Request.Form(json)))
Response.Write(CStr(Request.Form))
%>

有人请告诉我,我还没有失去所有的弹珠......

解决方案

aaand我发现问题5分钟后......照常发布:)值需要被url编码。


I'm trying to figure this oddity out... in classic ASP i seem to be losing spaces in Request.Form values...

ie, Request.Form("json") is

{"project":{"...","administrator":"AlexGorbatchev",
"anonymousViewUrl":null,"assets":[],"availableFrom":"6/10/20104:15PM"...

However, CStr(Request.Form) is

json={"project":{"__type":"...":"Alex Gorbatchev",
"anonymousViewUrl":null,"assets":[],"availableFrom":"6/10/2010 4:15 PM"...

Here's the entire code :)

<%@ language="VBSCRIPT"%>
<%
Response.Write(CStr(Request.Form("json")))
Response.Write(CStr(Request.Form))
%>

Somebody please tell me I haven't lost all my marbles...

解决方案

aaand I found the problem 5 minutes after... as usual :) posted values need to be url encoded.

这篇关于经典ASP Request.Form删除空格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆