Archive of UserLand's first discussion group, started October 5, 1998.
Fixed!
Author: Dave Winer Posted: 1/16/1999; 7:13:12 AM Topic: WDDX Annotated DTD Msg #: 2170 (In response to 2165) Prev/Next: 2169 / 2171
Thanks for the clue Jim.I did a search for string.parseHttpArgs, unfortunately there's no DocServer page for it, but I did find a sample call on this page. Here's the call:
dialog.alert (string.parseHTTPargs ("name=Mason+Hale&address=1801+Winsted"))I did some testing on my laptop, and sure enough string.parseHTTPargs is also doing a string.urlDecode. So your theory was correct, we were double-processing the POST args, and that's how we were losing the plusses.
Fixed!
But it works now. Here's a bunch of plusses to prove the point:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
I could program in C++ if I wanted to!
12 + 12 = 24
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
I think that about nails this one. The change was in mainResponder.respond, it's available to NS testers in the usual place. A virtual golden keychain from UserLand to Roepcke. As always, a pleasure doing business with you!
PS: I just did the DocServer page for string.parseHttpArgs.
There are responses to this message:
- Re: Fixed!, Simeon Simeonov, 1/17/1999; 8:42:32 AM
This page was archived on 6/13/2001; 4:47:19 PM.
© Copyright 1998-2001 UserLand Software, Inc.