Hi,
i have made an app,
you write some text, and text will be saved over ajax. Before sending the request, i escaped it with js. But somehow, the "+" Character will be converted to " " Space Character...
So i tryed to find and replace before sending in "%plus%" but i get thes error message:
Uncaught SyntaxError: Invalid regular expression: /+/: Nothing to repeat
Code:
var replace = "%plus%";
while(title.search(sign) != -1) {
title.replace("+", replace);
}
Maybe some one know a better solution for this... i work with utf-8... and german characters like "ä" I have also Problems with "€" while getting it from DB over Ajax... and a lot other characters....
I have great results if i rawescape() in php and unescape() in js (but still have Problems with € -> %u20AC
Need help :)