New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS: Uncaught URIError: URI malformed with Chrome/IE11 and ISO 8859-1 Encoding #8413
Comments
Hi @stastka Let's try to reproduce and then:
|
Hi @mattab I create a small testpage to reproduce. The site contains links with french and german characters with ISO 8859-1 encoding. : |
Line 2140 of the current piwik.js: "decodeWrapper" is "window.decodeURIComponent" and "decodeURIComponent" expects UTF-8. Since "locationArray[1]" 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. |
Thx for the feedback! |
If Website has ISO 8859-1 encoding, you have Uncaught URIError Javascript error with Chrome (and IE) when URL have some special character
Samples with French character:
URL: /Les-droits-r%E9els
decode: /Les droits réels
or with German Umlaut
/Hasenb%F6hler-Franz
decode: Hasenböhler-Franz
Detailed Error:
Uncaught URIError: URI malformedD @ piwik.js:30(anonymous function) @ piwik.js:51(anonymous function) @ piwik.js:52
I used latest Piwik, 2.14.x
The text was updated successfully, but these errors were encountered: