How to handle non-ASCII characters in http headers ?

689 views
Skip to first unread message

Nicolas Delsaux

unread,
Nov 8, 2016, 9:37:16 AM11/8/16
to wisdom-...@googlegroups.com
My application is integrated in an SSO system which send auth headers
when user is authenticated (I'm behind an Aapche server which handles
the auth dance).

As a consequence, i receive typical OpenAM headers when user is logged in :

FIRSTNAME

LASTNAME

LOGIN

EMAIL

Being in a french company, these headers may contain accented letters
(é, è, ...) which are not in ASCII table.

it seems Wisdom, Vert.x, or even netty (don't know which one) translates
those headers sent in UTF-8 into US-ASCII. I've tried to convert them
back to UTF-8, with absolutly no success.

So, is it possible to ask Wisdom stack to not force these headers to
US-ASCII and let them flow in their original encoding ?

Nicolas Delsaux

unread,
Nov 15, 2016, 4:37:14 AM11/15/16
to wisdom-...@googlegroups.com
OK, after having searched that one a good time, it seems not to be
possible to do so.

indeed, spec for HTTP header is that they have to be sent in pure ASCII.
Any other encoding is not supported per spec.

Clement Escoffier

unread,
Nov 15, 2016, 4:38:06 AM11/15/16
to wisdom-...@googlegroups.com
Hi,

Yes I came up with the same conclusion. The HTTP spec is clear about that.

Clement

-- 
You received this message because you are subscribed to the Google Groups "wisdom-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wisdom-discus...@googlegroups.com.
Visit this group at https://groups.google.com/group/wisdom-discuss.
To view this discussion on the web visit https://groups.google.com/d/msgid/wisdom-discuss/e0246b6a-128d-0cc6-b3e7-6aa21fbb964e%40gmx.fr.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages