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

Add UTF-8 support to example.xsl

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • None
    • search
    • None
    • all

    Description

      If conf/xslt/example.xsl is applied to non-ASCII characters such as Arabic, the output gets garbled, because the output encoding is not properly specified.
      The xsl:output element in example.xsl needs to be modified as suggested in the following email:

      From: Brian Whitman
      Sent: Thursday, May 10, 2007 1:19 PM
      To: solr-user@lucene.apache.org
      Subject: Re: Does Solr XSL writer work with Arabic text?

      In example.xsl change the output type

      <xsl:output media-type="text/html"/>

      to

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

      And see if that helps. I had the same problem (different language.)
      If this works we should file a JIRA to fix it up in trunk.

      On May 10, 2007, at 4:13 PM, Teruhiko Kurosaka wrote:

      > I'm trying to search an index of docs which have text fields in
      > Arabic,
      > using XSL writer (wt=xslt&tr=example.xsl). But the Arabic text gets
      > all garbled. Is XSL writer known to work for Arabic text? Is anybody
      > using it?
      >
      > -kuro

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment