...
>From command line with terminal set to Latin-1 encoding:
curl 'http://example.org/test.jsp' --header "x-foo: é"
-->mod_jk log: E9 (the Latin-1 encoding for é is E9)
-->tomcat log: é
>From command line with terminal set to UTF-8, or run iconv on this
line to convert and then source it:
curl 'http://example.org/test.jsp' --header "x-foo: é"
-->mod_jk log: C3 A9 (the UTF-8 encoding for é is C3 A9)
-->tomcat log: Ã ©
There doesn't appear to be a way to get access to the raw bytes of the
headers by the time our code starts to run... and if there is, it's
certainly not convenient :).