JBoss Encoding utf 8

31,148

Solution 1

This may help you https://community.jboss.org/message/643825#643825

<system-properties>
    <property name="org.apache.catalina.connector.URI_ENCODING" value="UTF-8"/>
    <property name="org.apache.catalina.connector.USE_BODY_ENCODING_FOR_QUERY_STRING" value="true"/>
</system-properties>

Solution 2

To be quite sure, you have something with pageEncoding like this?

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:loadBundle basename="i18n.messages" var="msg"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Share:
31,148
Fofole
Author by

Fofole

Updated on July 05, 2022

Comments

  • Fofole
    Fofole over 1 year

    I had problems with my list grids not showing diacritics correctly and I found out that when I inserted from java into the DB the values were already bugged.

    A post here helped and I changed my project properties -> Text encoding -> other -> UTF-8 and this fixed my problem. The thing is this only fixes my problem locally.

    What I need to do is on my Jboss server also set the encoding somehow. I can only access this panel because I can't access the configuration files directly. Can I do it from here?

    enter image description here

    Any suggestions are appreciated and sorry for this dumb question but I tried everything I could think of with no success. Thanks.

  • BoneGoat
    BoneGoat about 10 years
    For JBoss < 7, add URIEncoding="UTF-8" to connectors in <jboss_install>/server/deploy/jbossweb.sar/server.xml