<p dir="ltr">I'm not sure of this is the same thing, but search the archives for posts where I'm the author.</p>
<p dir="ltr">I ran into this using Apache Tomcat. Tomcat's code automatically converts the headers to ISO-8859-1 and there's no way to turn that off.</p>
<p dir="ltr">The solution is to read the String, convert the bytes to ISO-8859-1 and the create a new String from those bytes but specify UTF-8</p>
<p dir="ltr">In the larger web development world that knows nothing about Shibboleth, this is discouraged as a hack.</p>
<p dir="ltr">Except with Shibboleth it's not a hack, it's the only thing you can do (unless you can get the Tomcat guys to modify their code)</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Nov 17, 2016 11:44 AM, "Martin Mortensen" <<a href="mailto:martin.mortensen@adm.ku.dk">martin.mortensen@adm.ku.dk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have setup Shibboleth SP on linux with Apache 2.4 and switched on http headers for an application that can get the user id, username and attributes via http headers. The application is Graylog 2.1.2 with add-on graylog plugin auth sso.<br>
<br>
It works well - but! - application doesnt understand utf-8 header values - as its a breach of the HTTP/1.1 RFC and is not well supported in browsers.<br>
They could understand the values if they were url-encoded - but I cant find anything for encoding the attributes in any way - only decoding.<br>
I cant find a way for Apache to url-encode the header values either - I guess its never come up, since http headers only really support us-ascii - and the RFC states that you should use mime encoding (RFC2047 encoding) if you wish to use data outside us-ascii charset.<br>
<br>
Is it possible to url-encode the http headers?<br>
<br>
-- <br>
<br>
Martin R Mortensen<br>
Linux Specialist<br>
<br>
Københavns Universitet<br>
Koncern-it<br>
Nørregade 10, postboks 2177<br>
1017 København K<br>
<br>
MOB 20 57 17 67<br>
TEL 35 32 29 63<br>
<br>
<a href="mailto:martin.mortensen@adm.ku.dk" target="_blank">martin.mortensen@adm.ku.dk</a><br>
<a href="http://www.it.ku.dk/" rel="noreferrer" target="_blank">http://www.it.ku.dk/</a><br>
<br>
-- <br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">users-unsubscribe@shibboleth.n<wbr>et</a></blockquote></div></div>