Details
-
Type:
Bug
-
Status: Closed
-
Priority:
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: å�ö���
- FF 3.6:
Input: åäöÅÄÖ
Backing bean value: åäöÅÄÖ
- IE8:
Input: åäöÅÄÖ
Backing bean value: å�ö���
Issue Links
- depends on
-
ICE-6393
Compat components incorrectly escaping certain unicode characters
-
- Closed
-
Activity
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Assignee Priority | P1 |
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Assignee | Ted Goddard [ ted.goddard ] | Tyler Johnson [ tyler.johnson ] |
| Assignee Priority | P2 | P1 |
| Assignee | Deryk Sinotte [ deryk.sinotte ] | Ted Goddard [ ted.goddard ] |
| Attachment | chars-in-browsers.png [ 12731 ] |
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Fix Version/s | 2.0.0 [ 10230 ] | |
| Affects | [Compatibility/Configuration] | |
| Assignee Priority | P2 | |
| Assignee | Deryk Sinotte [ deryk.sinotte ] |
| Attachment | sc9554.war [ 12699 ] |
| 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: Ã¥Ã?öÃ?Ã?Ã? |
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.