Answered
Issue decoding a string
Hi,
I'm having issues decoding a string ...
var newText = "This is a [u0027] test";
newText = newText.replace("\[u", '\\u');
newText = newText.replace("]", "");
newText = decodeURI(newText);
alert(newText);The base string contains square brackets and lacks the backspace prefix.
This however seem to work ...
var newText = "This is a \u0027 test";
newText = decodeURI(newText);
alert(newText);
Does aynone have a solution?
Thanx
