Hi list,

I am trying to parse some query string parameters on my client code.

However, if there's some special characters in the query string, the browser 
itself will encode them in Unicode (equivalent to javascript escape function).
So, the problem is, the open layers code assumes the UTF-8 encode, and when the 
page loads the function OpenLayers.Util.getParameters will run, and throws an 
exception, because the url was encoded with the function escape (it is in 
Unicode) and the decode is done with decodeURIComponent function (decodes 
UTF-8).

Any solutions? Should OpenLayers.Util.getParameters function assumes the UTF-8 
encode?

Regards
André Matos
http://maps.sapo.pt

_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev

Reply via email to