Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-231

By default, use UTF-8 for posted content streams

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2
    • None
    • None

    Description

      Solr should assume UTF-8 encoding unless the contentType says otherwise. To change the contentType and encoding set the header value with contentType ="text/xml; charset=utf-8"

      likewise, with stream.body=xxxx, will default to UTF-8 unless the stream.contentType says otherwise.

      For previous discussion, see:

      http://www.nabble.com/resin-and-UTF-8-in-URLs-tf3152910.html

      http://www.nabble.com/charset-in-POST-from-browser-tf3153057.html

      http://www.nabble.com/Re%3A-svn-commit%3A-r536048----lucene-solr-trunk-src-webapp-src-org-apache-solr-servlet-SolrRequestParsers.java-tf3712816.html

      Attachments

        1. SOLR-231-ContentType-UTF8.patch
          5 kB
          Ryan McKinley
        2. SOLR-231-ContentType-UTF8.patch
          5 kB
          Ryan McKinley

        Activity

          People

            ryantxu Ryan McKinley
            ryantxu Ryan McKinley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: