Closed bernhardoj closed 3 days ago
The decoding of the URI is currently done using unescape. https://github.com/wonday/react-native-pdf/blob/d545ff27b49850c773f6c443dfc65891881c0ed2/index.js#L238
unescape
However, this fails if the URI contains an encoded accented name, for example:
ù is encoded to %C3%B9, but decoding it using unescape gives ù.
%C3%B9
ù
This PR replaces unescape with decodeURIComponent.
decodeURIComponent
Possibly related issue https://github.com/wonday/react-native-pdf/issues/697. Also note that unescape is deprecated.
The decoding of the URI is currently done using
unescape
. https://github.com/wonday/react-native-pdf/blob/d545ff27b49850c773f6c443dfc65891881c0ed2/index.js#L238However, this fails if the URI contains an encoded accented name, for example:
ù is encoded to
%C3%B9
, but decoding it usingunescape
givesù
.This PR replaces
unescape
withdecodeURIComponent
.