java - window.open with French characters in the url -
i use window.open open popup french accented characters in url.
when new popup opens, see french characters displayed in url.
ie. http://example.com/alt_title=thierry%20frémaux%3a%20les%20confiden
however, when request processed java web app , parameters parsed, french accented characters become corrupted inside httprequest object.
could please tell me how resolve issue?
the url constructed using javascript. js extracts values of input tags inside form build ulr. so, it'll tricky encode url in java
thanks in advance!
use
string correcturl = urlencoder.encode(myurl); edited:
oops sorry thought java... here equivalent code in js:
var correcturl = encodeuricomponent(myurl);
Comments
Post a Comment