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
Some UTF-8 chars seem to break articles #113
Comments
Seems that this is something with Pedestal. Pedestal reports the following URL for the GET request:
but to correctly resolve the article we'd need something like this:
Seems there is a thing |
Seems like a regular case of URL percent encoding/decoding (require '[lambdaisland.uri.normalize :as n])
(n/percent-decode "/d/lambdaisland/kaocha/0.0-118/doc/01-kaocha-%E8%80%83%E5%AF%9F")
;;=> "/d/lambdaisland/kaocha/0.0-118/doc/01-kaocha-考察"
Update: java.net.URLDecoder.decode(url, "UTF-8"); |
This should probably be handled by Pedestal itself #113
Thanks, I was kind of thinking this should be done by Pedestal but regardless of that we probably don't want to wait for an upstream release to get it fixed. |
Deployed and working now: https://cljdoc.xyz/d/lambdaisland/kaocha/0.0-118/doc/01-kaocha-考察 |
Closing this issue, might bug Pedestal people about this but it's working for now 🚀 |
Seems it is a known issue in Pedestal, introduced in a recent version: pedestal/pedestal#588 |
This article contains some UTF-8 characters that don't seem to go well with our code.
Need to look into it some more but likely the issue is somewhere here:
cljdoc/src/cljdoc/renderers/html.clj
Lines 97 to 104 in 422f463
(presumably when trying to find the matching article inside the doctree)
The text was updated successfully, but these errors were encountered: