From issues at jboss.org Fri Jan 3 05:46:33 2014 Content-Type: multipart/mixed; boundary="===============4133261911931284098==" MIME-Version: 1.0 From: Stuart Douglas (JIRA) To: jboss-jira at lists.jboss.org Subject: [jboss-jira] [JBoss JIRA] (WFLY-2705) Unicode and Umlaut problems in Wildfly Date: Fri, 03 Jan 2014 05:46:33 -0500 Message-ID: In-Reply-To: JIRA.12528574.1388739645000@jira02.app.mwc.hst.phx2.redhat.com --===============4133261911931284098== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/WFLY-2705?page=3Dcom.atlassian.jira.= plugin.system.issuetabpanels:all-tabpanel ] Stuart Douglas resolved WFLY-2705. ---------------------------------- Assignee: Jozef Hartinger (was: Stuart Douglas) Resolution: Duplicate Issue Looks like you are hitting WFLY-2531 There are a couple of workarounds you can do. You can either map the CDI co= nversation filter, or set the default encoding to UTF-8 at either the serve= r level or by using jboss-web.xml. = Alternatively if you are not using CDI you can remove the weld subsystem or= exclude it using jboss-deployment-structure.xml = > Unicode and Umlaut problems in Wildfly > -------------------------------------- > > Key: WFLY-2705 > URL: https://issues.jboss.org/browse/WFLY-2705 > Project: WildFly > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: Web (Undertow) > Affects Versions: 8.0.0.CR1 > Environment: CentOS > java version "1.7.0_45" > OpenJDK Runtime Environment (rhel-2.4.3.2.el6_4-x86_64 u45-b15) > Reporter: Andre Pankraz > Assignee: Jozef Hartinger > > I think I'm doing something wrong if this is really a CR1, but I cannot g= et UTF working properly on Wildfly. (It works fine in same environment and = same settings/code in jboss-as-7.2.0.Final.) > * If i have an JSF inputText in a form (hence POST) > * and I enter "Test=C3=9C=C3=96=C3=84" > * I get "Test=C3=83?=C3=83?=C3=83" as result. > If I provide a on this field, the ajax rendering creat= es the proper response, but if I submit the data I always get the wrong enc= oded result. > I created a minimalistic web app without any additional libs with just on= e JSF test page (see below). It works in jboss as 7.2 final but not in Wild= fly CR1. > I have set in the environment: > -Dsun.jnu.encoding=3DUTF-8 -Dfile.encoding=3DUTF-8 > An encoding filter didn't help either. > May be I'm doing something wrong here, but I have seen quite some other b= ugs that don't really speak for a "Release-Candidate" so it might really be= an issue? Have you really tried to deploy at least 2 or 3 bigger JSF apps = onto this new version? Will add some more reports. > Example page for quick test: > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:ui=3D"http://java.sun.com/jsf/facelets"> > > > Test > > >

Test =C3=9C=C3=84=C3=96

> > > > > AJAX: #{test.test} >
> >
>
> >
> package test; > import javax.enterprise.context.RequestScoped; > import javax.inject.Named; > @Named > @RequestScoped > public class Test { > private String test; > public String getTest() { > return test; > } > public void setTest(String test) { > this.test =3D test; > } > public String print() { > System.out.println("TEST: " + getTest()); > return "success"; > } > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira --===============4133261911931284098==--