diff --git a/lib/OpenLayers/Format/XML.js b/lib/OpenLayers/Format/XML.js index 7dbdcd46cb..4379a6e466 100644 --- a/lib/OpenLayers/Format/XML.js +++ b/lib/OpenLayers/Format/XML.js @@ -500,7 +500,7 @@ OpenLayers.Format.XML = OpenLayers.Class(OpenLayers.Format, { var value = options.value; if(value != null) { if(typeof value == "boolean") { - value = encodeURIComponent(value); + value = String(value); } node.appendChild(this.createTextNode(value)); }