Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1090

DojoAjaxResponseBuilder encoding problem with Internet Explorer

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.1
    • Component/s: tapestry-core
    • Labels:
      None
    • Environment:
      SNAPSHOT version 4.1.1 (tapestry-framework-4.1.1-20060827.214823-24.jar)
      Internet Explorer (6.0.2900.2180.xpsp_sp2_gdr.050301-1519)
      Firefox (1.5.0.6)

      Description

      When using encodings like Shift_JIS as the "org.apache.tapestry.output-encoding" configuration, the ajax response will not be rendered correctly in Internet Explorer. Internet Explorer complains about invalid characters (in my case japanese characters), whereas Firefox seems to ignore this and renders the output.

      Change in DojoAjaxResponseBuilder.java Line 405 (Method beginResponse()) from UTF-8 to Shift_JIS solved the Problem:

      void beginResponse()
      {
      _writer.printRaw("<?xml version=\"1.0\" encoding=\"Shift_JIS\"?>");

        Activity

        Hide
        jkuhnert Jesse Kuhnert added a comment -

        Fixed, should use the configured output encoding now.

        Show
        jkuhnert Jesse Kuhnert added a comment - Fixed, should use the configured output encoding now.

          People

          • Assignee:
            Unassigned
            Reporter:
            moffermann Manri Offermann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development