[MAGNOLIA-2364] UTF-8 characters are not displayed properly in paragraphs in Weblogic Created: 12/Sep/08  Updated: 23/Jan/13  Resolved: 02/Oct/08

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 3.5.7, 3.5.8, 3.6, 3.6.1, 3.5.9
Fix Version/s: 3.6.2, 3.6.3

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
Firefox 2.0.0.16


Attachments: JPEG File 3.6.3 Polish.jpg     JPEG File screenshot-1.jpg    
Issue Links:
Cloners
is cloned by MAGNOLIA-2457 Ensure default encoding for JSPs is a... Closed
dependency
depends upon MGNLWLS-8 UTF-8 characters are not displayed pr... Closed
relation
is related to MAGNOLIA-2087 Weblogic 10 UTF-8 encoding issue Closed
is related to MAGNOLIA-2093 UTF-8 characters are not displayed pr... Closed
is related to MAGNOLIA-2405 Move weblogic-specific fix to separat... Closed
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   

This may be the same problem as seen in MAGNOLIA-2093. When I edit the paragraph again, the characters don't look corrupted (as shown in screenshot). Just when complete page is rendered.

I reproduced this using 3.6.1 community. However, if a patch is generated for this issue (as was done for 3.5.4), we are using Enterprise.

Reproduction:
1) Unpack magnolia-tomcat-bundle-3.6.1-bundle-jdk15.zip

2) Start up WL10 with additional options for jaas.config and more memory (needed to get through bootstrap)
-Djava.security.auth.login.config=C:\temp\magnolia-3.6.1\apache-tomcat-5.5.25\webapps\magnoliaAuthor\WEB-INF\config\jaas.config -Xmx1024m -XX:MaxPermSize=256m

3) Deploy app
$ java -cp 'C:\bea10\WEBLOG~1\server\lib\weblogic.jar' weblogic.Deployer -deploy -username weblogic -password weblogic123 -source 'C:\temp\magnolia-3.6.1\apache-tomcat-5.5.25\webapps\magnoliaAuthor'

4) Bootstrap, login, open page, New, "Samples: Text and image paragraph", paste in UTF-8 text, OK



 Comments   
Comment by Magnolia International [ 24/Sep/08 ]

Will try to look into this for 3.6.2

Comment by Magnolia International [ 26/Sep/08 ]

Jan, while looking into this, keep in mind the patch i just committed for MAGNOLIA-2395 (i.e wrapping/buffering the JspWriter from pageContext before delegating it to the paragraph renderer) - it still needs to be tested properly with JSPs !

Comment by Jan Haderka [ 29/Sep/08 ]

Partial fix committed for 3.6.2.
The fixed part is the one reported in this isse - content from paragraphs is now rendered properly. However jsp templates with hardcoded national characters are still not rendered properly in Weblogic.

Comment by Jan Haderka [ 02/Oct/08 ]

latest fix breaks layout of pages on tomcat.

Comment by Jan Haderka [ 02/Oct/08 ]

Weblogic relates changes moved to weblogic module.

Comment by John Kalstrom [ 22/Dec/08 ]

I am still seeing this in Community 3.6.3, at least with Polish (German worked OK). See screenshot. Polish is challenging, because there is no Latin-1 (ISO-8859-1) mapping for the characters. You have to stay in UTF-8, not convert back and forth.

Comment by Jan Haderka [ 23/Dec/08 ]

John, don't test with CE, make sure you are using EE and have Weblogic module installed.

Generated at Mon Feb 12 03:36:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.