[MAGNOLIA-2457] Ensure default encoding for JSPs is always set to UTF-8 even when not declared explicitely. Created: 29/Sep/08 Updated: 23/Jan/13 Resolved: 30/Oct/08 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | 3.6.3 |
| Fix Version/s: | 4.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | John Kalstrom | Assignee: | Jan Haderka |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | encoding | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Weblogic 10 |
||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Template: |
|
||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||
| Description |
|
Some containers (like Weblogic) use this value to set encoding for JSP compiler before opening the jsp file and if the value is not set they might default to some other value, causing later display problems with national characters written in the files themselves. |
| Comments |
| Comment by Jan Haderka [ 21/Oct/08 ] |
|
Adding following snippet to web.xml ensures jsps are compiled in UTF-8 instead of weblogic's default ISO-8859-1 encoding. <jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<page-encoding>UTF-8</page-encoding>
</jsp-property-group>
</jsp-config>
|
| Comment by Jan Haderka [ 21/Oct/08 ] |
|
Limited versions to latest of each branch only and updated description to properly describe issue dealt with. |
| Comment by Jan Haderka [ 30/Oct/08 ] |
|
fixed as r19530. |
| Comment by Jan Haderka [ 30/Oct/08 ] |
|
Moved back. Will fix in main web.xml rather then for weblogic only. |
| Comment by Jan Haderka [ 30/Oct/08 ] |
|
fixed in trunk as r 19554, r19561, r19562, r19563 and on 3.6 branch as r19566. |