- From: T. Kuro Kurosaka <kuro@bhlab.com>
- Date: Thu, 27 Jun 2013 21:52:07 -0700
- To: WWW International <www-international@w3.org>
I found out that, with Tomcat, request.getHeader("x-my-header") doesn't return the intended text if text includes non-ASCII and encoded in UTF-8. It seems I still have to do the old-fashioned trick of: new String(request.getHeader("x-my-header").getBytes("ISO8859-1"),"UTF-8"); I took a brief look at the Tomcat 7 code, and it seems it hard-codes ISO-8859-1 as the base of URL encoding, and the above trick is still needed. I thought wide acceptance of the IRI would have resolved this issue long time ago. But the IETF paper on IRI http://www.ietf.org/rfc/rfc3987 still seems to be in the draft state. What happened to the IRI proposal? Standard aside, do any other application servers support UTF-8 encoded headers? -- T. "Kuro" Kurosaka, Berkeley, California, USA
Received on Friday, 28 June 2013 04:52:29 UTC