finnk
finnk

Reputation: 133

Replace of escape() and unescape() and the consequences for already stored strings

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

Answers (0)

Related Questions