ajax - Change encoding on the fly with jquery or php -


i have problem ajax , php querys involving hebrew.

when submit form method on php hebrew string, lets "בית", sends me page address: search.php?q=%e1%e9%fa.
pulls data database ease.

but ajax , jquery address looks this: search.php?q=בית.
result, needless - isn't working when trying pull data data base.

what type of encoding %e1%e9%fa?
, there way of changing on fly in php or jquery?
tried googling quite time no success.

help appreciated.

try following

var text = 'בית' var textencoded = encodeuricomponent(text) 

and send textencoded query parameter


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -