Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2343

OAI interface Response Header is missing character encoding (UTF-8)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1, 5.0
    • Fix Version/s: 5.0
    • Component/s: None
    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Not Required

      Description

      The response header is missing the information about the character encoding.
      The solution is fixing changing:
      /dspace-oai/src/main/java/org/dspace/xoai/DSpaceOAIDataProvider.java

      I am not sure if line 90 is a typo and should be changed from:
      request.setCharacterEncoding("UTF-8"); to
      response.setCharacterEncoding("UTF-8");

      or if response.setCharacterEncoding("UTF-8"); should be an additional line.
      But anyway. Adding response.setCharacterEncoding("UTF-8"); is fixing th e problem

        Attachments

          Activity

            People

            Assignee:
            helix84 Ivan Masár
            Reporter:
            christian.scheible Christian Scheible
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: