diff --git a/lib/OpenLayers/Ajax.js b/lib/OpenLayers/Ajax.js index 4058e5a0d5..8c721e9a13 100644 --- a/lib/OpenLayers/Ajax.js +++ b/lib/OpenLayers/Ajax.js @@ -60,7 +60,7 @@ OpenLayers.loadURL = function(uri, params, caller, onComplete, onFailure) { if (OpenLayers.ProxyHost && OpenLayers.String.startsWith(uri, "http")) { - uri = OpenLayers.ProxyHost + escapeURIComponent(uri); + uri = OpenLayers.ProxyHost + encodeURIComponent(uri); } var success = (onComplete) ? OpenLayers.Function.bind(onComplete, caller) diff --git a/tests/list-tests.html b/tests/list-tests.html index 1f5bd4cafc..40b56125f8 100644 --- a/tests/list-tests.html +++ b/tests/list-tests.html @@ -1,4 +1,5 @@