Solr
  1. Solr
  2. SOLR-412

XsltWriter does not output UTF-8 by default

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Component/s: Response Writers
    • Labels:
      None
    • Environment:

      Tomcat 5.5
      Linux Red Hat ES4 (2.6.9-5.ELsmp from 'uname -a')

      Description

      XsltWriter outputs XML text in ISO-8859-1 encoding by default.

      Tomcat 5.5 has URIEncoding="UTF-8" set in the <Connector> element as described in the Wiki.

      This outout description in the XML:

      <xsl:output method="xml" encoding="utf-8" />

      gives output with this header:

      HTTP/1.1 200 OK
      Server: Apache-Coyote/1.1
      Content-Type: text/xml;charset=ISO-8859-1
      Transfer-Encoding: chunked
      Date: Wed, 14 Nov 2007 17:49:11 GMT

      I had to change the <xsl:output> directive to this:

      <xsl:output media-type="text/xml; charset=UTF-8" encoding="UTF-8"/>

      This is the root cause of SOLR-233.

      1. diff-2009-10-22
        3 kB
        Age Jan Kuperus

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Lance Norskog
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development