If your key is "key" and your value is "x?&c=f" then your url will be: http://server/page?key=x?&= Which the server will read as: key = x? c = f
With encoding yo get something like: http://server/page?key=x%3F%26c%3Df And the server will read it as: key = x?&c=f You can argue that you might want to add the extra c=f keypair, but you should not add such a value there, because parsing the key/value list other places becomes a real pain. More info here: http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp Regards, Kenneth Skovhede, GEOGRAF A/S Carolin Wengerter skrev: > Why or when do I need the line 585 of code util.js? > > encodedValue = encodeURIComponent(value); > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
