ICEfaces
  1. ICEfaces
  2. ICE-6287

iso-8859-1 chars become UTF-8 in IE

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta2
    • Fix Version/s: 2.0.0
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      IE8
    • Affects:
      Compatibility/Configuration
    • Workaround Description:
      Do not include the xml declaration in your page.

      Description

      When adding <?xml version="1.0" encoding="ISO-8859-1"?> to the top of an xhtml page, iso-8859-1 characters become UTF-8. This appears to only be an issue on IE (tested with IE8). For example, I see the following:

      - FF 3.6:

      Input: åäöÅÄÖ
      Backing bean value: åäöÅÄÖ

      - IE8:

      Input: åäöÅÄÖ
      Backing bean value: å�ö���

        Issue Links

          Activity

          Tyler Johnson created issue -
          Tyler Johnson made changes -
          Field Original Value New Value
          Summary Backing values converted to UTF-8 in IE iso-8859-1 chars become UTF-8 in IE
          Salesforce Case [5007000000ESh5l]
          Description When adding <?xml version="1.0" encoding="ISO-8859-1"?> to the top of an xhtml page, the resulting backing bean values are converted to UTF-8. This appears to only be an issue on IE (tested with IE8). For example, I see the following:

          - FF 3.6:

          Input: åäöÅÄÖ
          Backing bean value: åäöÅÄÖ

          - IE8:

          Input: åäöÅÄÖ
          Backing bean value: å�ö���

          When adding <?xml version="1.0" encoding="ISO-8859-1"?> to the top of an xhtml page, iso-8859-1 characters become UTF-8. This appears to only be an issue on IE (tested with IE8). For example, I see the following:

          - FF 3.6:

          Input: åäöÅÄÖ
          Backing bean value: åäöÅÄÖ

          - IE8:

          Input: åäöÅÄÖ
          Backing bean value: å�ö���

          Hide
          Tyler Johnson added a comment -

          Test case attached. Characters used to reproduce: åäöÅÄÖ

          Show
          Tyler Johnson added a comment - Test case attached. Characters used to reproduce: åäöÅÄÖ
          Tyler Johnson made changes -
          Attachment sc9554.war [ 12699 ]
          Ken Fyten made changes -
          Fix Version/s 2.0.0 [ 10230 ]
          Affects [Compatibility/Configuration]
          Assignee Priority P2
          Assignee Deryk Sinotte [ deryk.sinotte ]
          Deryk Sinotte made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          Deryk Sinotte added a comment -

          I modified a simple test case to do the same thing as the originally attached case except I also included an outputText field that echoes the submitted value. I then ran the test app .war to see the behaviour in a number of different browsers. Screen shot is attached.

          FF and Safari seem to hold and display the value no matter what.

          Chrome holds the value that was originally input but mangles the output.

          IE mangles both the input and output.

          Show
          Deryk Sinotte added a comment - I modified a simple test case to do the same thing as the originally attached case except I also included an outputText field that echoes the submitted value. I then ran the test app .war to see the behaviour in a number of different browsers. Screen shot is attached. FF and Safari seem to hold and display the value no matter what. Chrome holds the value that was originally input but mangles the output. IE mangles both the input and output.
          Deryk Sinotte made changes -
          Attachment chars-in-browsers.png [ 12731 ]
          Ken Fyten made changes -
          Assignee Priority P2 P1
          Assignee Deryk Sinotte [ deryk.sinotte ] Ted Goddard [ ted.goddard ]
          Ken Fyten made changes -
          Assignee Ted Goddard [ ted.goddard ] Tyler Johnson [ tyler.johnson ]
          Ken Fyten made changes -
          Link This issue depends on ICE-6393 [ ICE-6393 ]
          Tyler Johnson made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Assignee Priority P1

            People

            • Assignee:
              Tyler Johnson
              Reporter:
              Tyler Johnson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: