I made a register page in my site which sends to preview page before inserting the data to the database.
The problem is that it converts hebrew to gibberish (it works well with english). What can I do? This is the function I use to pass the strings:
function getParams() {
var idx = document.URL.indexOf('?');
var params = new Array();
if (idx != -1) {
var pairs = document.URL.substring(idx + 1, document.URL.length).split('&');
for (var i = 0; i < pairs.length; i++) {
nameVal = pairs[i].split('=');
params[nameVal[0]] = nameVal[1];
}
}
return params;
}