Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2087

Weblogic 10 UTF-8 encoding issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.5.5
    • 3.5.4
    • None
    • None
    • Linux and XP, Weblogic 10

    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");

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                kraft Boris Kraft
                kirk.freeman Kirk Freeman
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD