Reputation: 133
I want to replace all the (deprecated) escape()
and unescape()
calls in our Javascript
code with encodeURIComponent
, decodeURICompnent
or/and encodeURI
, decodeURI
.
The problem is, that our customers might have strings in their databases, which are already encoded by the deprecate "escape()
"-Function, which might not be decoded correctly.
I guess many developers already had to deal with that problem.
One solution would be an update script, but I think there might be other approaches as well.
Any recommendations?
Best regards.
Upvotes: 0
Views: 604