Tapestry
  1. Tapestry
  2. TAPESTRY-1090

DojoAjaxResponseBuilder encoding problem with Internet Explorer

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12567879 ] jira [ 12591974 ]
        Mark Thomas made changes -
        Workflow jira [ 12383660 ] Default workflow, editable Closed status [ 12567879 ]
        Jesse Kuhnert made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Jesse Kuhnert made changes -
        Field Original Value New Value
        Fix Version/s 4.1.1 [ 12312021 ]
        Manri Offermann created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development