[MAGNOLIA-2087] Weblogic 10 UTF-8 encoding issue Created: 13/Mar/08  Updated: 23/Jan/13  Resolved: 26/Mar/08

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 3.5.4
Fix Version/s: 3.5.5

Type: Bug Priority: Major
Reporter: Kirk Freeman Assignee: Boris Kraft
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux and XP, Weblogic 10


Attachments: PNG File Screenshot-Magnolia 3.5 Samples | Feedback - Mozilla Firefox.png     XML File weblogic.xml    
Issue Links:
relation
is related to MAGNOLIA-2364 UTF-8 characters are not displayed pr... Closed
is related to MAGNOLIA-2457 Ensure default encoding for JSPs is a... Closed
supersession
is superseded by MAGNOLIA-2093 UTF-8 characters are not displayed pr... 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   

I'm having trouble with Internationalized character sets on Weblogic 10, but appears to work fine on tomcat and Glassfish.

To reproduce use the magnoliaAuthor-community-3.5.4 war on both Weblogic and tomcat. For Weblogic add a weblogic.xml to the WEB-INF (attached).

Tell weblogic where the jaas.config is located:
JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.security.auth.login.config=~/downloads/magnoliaAuthor-community-3.5.4/WEB-INF/config/jaas.config"

Add a new "Text and Image" paragraph to the Feedback page with FCKEditor and some Polish text. I grabbed the top paragraph from http://www.efax.com/pl/intl/product/globalGateway and pasted it into the editor.

It looks fine in the FCKEditor, even retrieving it after save and node looks fine in the JCR Browser. The text is corrupted when the page renders though (screenshot attached). Again, the page looks fine in tomcat.

We tried 4 different things to get the JSP to generate the page correctly:

Weblogic command line parameter: Dweblogic.wtc.encoding=utf8

Element in weblogic.xml:
<jsp-descriptor>
<encoding>UTF-8</encoding>
</jsp-descriptor>

Add pageEncoding, although contentType should have worked.

<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8"%>

Add setContentType to our j2 response filters, although we deactivated them and had the same issue.

response.setContentType("text/html;charset=UTF-8");



 Comments   
Comment by Jan Haderka [ 26/Mar/08 ]

svn #14777

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