Solr
  1. Solr
  2. SOLR-231

By default, use UTF-8 for posted content streams

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      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

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

        Activity

        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Ryan McKinley made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ryan McKinley made changes -
        Assignee Ryan McKinley [ ryantxu ]
        Ryan McKinley made changes -
        Attachment SOLR-231-ContentType-UTF8.patch [ 12356989 ]
        Ryan McKinley made changes -
        Field Original Value New Value
        Attachment SOLR-231-ContentType-UTF8.patch [ 12356988 ]
        Ryan McKinley created issue -

          People

          • Assignee:
            Ryan McKinley
            Reporter:
            Ryan McKinley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development