1
我有數據類型LONGCHAR變量保持的值:如何編寫相當於javascript的encodeuricomponent的進度代碼?
val='DQoJICA8bGkgY2xhc3M9ImhvbWUiPjxhIGhyZWY9InkyeWdlbmVyYWx3b3JsZC5wP3dvcmxkPWdlbmVyYWwiPltsLXBmaG9tZV08L2E+ID4gPGEgaHJlZj0ieTJkYXNoYm9hcmQucD93b3JsZD1idWxsZXQiPkJ1bGxldCBbbC1ob21lXTwvYT48L2xpPiANCgkJICAgDQoJCSAgPCEtLSBbcHJldmxpbmstc3RhcnRdIC0tPjxsaSBjbGFzcz0iIiA+ID4gPGEgaHJlZj0iamF2YXNjcmlwdDp2b2lkKDApIiBvbkNsaWNrPSJyZXR1cm4gZmFsc2U7Ij5bbC1yZWNlbnRpdGVtXTwvYT48L2xpPjwhLS0gW3ByZXZsaW5rLXN0b3BdIC0tPg0KCQk='
我轉移與頁面重定向此變量。
run p-redirectto('mynextpage.p?value=' + val).
在mynextpage.p我得到的變量val的值:
val='DQoJICA8bGkgY2xhc3M9ImhvbWUiPjxhIGhyZWY9InkyeWdlbmVyYWx3b3JsZC5wP3dvcmxkPWdlbmVyYWwiPltsLXBmaG9tZV08L2E ID4gPGEgaHJlZj0ieTJkYXNoYm9hcmQucD93b3JsZD1idWxsZXQiPkJ1bGxldCBbbC1ob21lXTwvYT48L2xpPiANCgkJICAgDQoJCSAgPCEtLSBbcHJldmxpbmstc3RhcnRdIC0tPjxsaSBjbGFzcz0iIiA ID4gPGEgaHJlZj0iamF2YXNjcmlwdDp2b2lkKDApIiBvbkNsaWNrPSJyZXR1cm4gZmFsc2U7Ij5bbC1yZWNlbnRpdGVtXTwvYT48L2xpPjwhLS0gW3ByZXZsaW5rLXN0b3BdIC0tPg0KCQk'
我的問題是我想保存在VAL在mynextpage.p的值完全是我之前重定向到該頁面。
我該怎麼做?
幫我看看這裏有什麼區別?他們看起來和我的眼睛一模一樣 – 2014-11-28 19:25:12
有區別。收到的變量中缺少'+'和'=' – Austin 2014-11-30 03:58:02