Samples with French character:
decode: /Les droits réels
or with German Umlaut
Uncaught URIError: URI malformedD @ piwik.js:30(anonymous function) @ piwik.js:51(anonymous function) @ piwik.js:52
I used latest Piwik, 2.14.x
Thanks for the report.
Let's try to reproduce and then:
Line 2140 of the current piwik.js:
locationHrefAlias = decodeWrapper(locationArray)
"decodeWrapper" is "window.decodeURIComponent" and "decodeURIComponent" expects UTF-8.
Since "locationArray" holds "window.location.href" and since that contains the ISO-8859-... - characters, current piwik (IMHO) is not fully compatible with websites that encode Links in ISO-8859-...
Is the use of "unescape" instead of / before using "decodeURIComponent" a solution to the problem?
Seems to resolve the issue possible.
I would test a patch on my system
Thx for the feedback!