Fork me on GitHub
#pedestal
<
2020-08-25
>
thumbnail20:08:17

We use pedestal with jetty, and have a legacy app which sends a utf-8 string as a header. Jetty (rightfully) expects iso-8859-1, so we end up with a malformed string. Would it be possible to get the raw header, so we could parse it as utf-8 directly?

thumbnail20:08:58

(String. (.getBytes my-str StandardCharsets/ISO_8859_1) StandardCharsets/UTF_8)
Re-encoding seems to work; Nice!.

parrot 3