Note that there are some explanatory texts on larger screens.

plurals
  1. POaccent showing with post in jsf page
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/10721342/utf-8-form-submit-in-jsf-is-corrupting-data">UTF-8 form submit in JSF is corrupting data</a> </p> </blockquote> <p>This is a code I wrote</p> <pre><code> &lt;?xml version='1.0' encoding='ISO-8859-1' ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /&gt; &lt;/head&gt; &lt;body&gt; &lt;ui:composition template="../WEB-INF/templates/template.xhtml"&gt; &lt;ui:define name="titleHeader"&gt; &lt;h:outputText value="#{bundles.messages['message.NouveauClient']}" styleClass="titreContainer"/&gt; &lt;/ui:define&gt; &lt;ui:define name="content"&gt; &lt;p:growl autoUpdate="true"/&gt; &lt;h:form&gt; &lt;h:panelGrid columns="1" width="100%" columnClasses="top1,top2"&gt; &lt;h:panelGrid columns="2" width="80%"&gt; &lt;h:outputText value="#{bundles.messages['message.NomClient']}"/&gt; &lt;p:inputText value="#{clientController.client.nom}" required="true"/&gt; &lt;h:outputText value="#{bundles.messages['message.honoraire']}"/&gt; &lt;p:inputText value="#{clientController.client.honoraire}" required="true"/&gt; &lt;/h:panelGrid &gt; &lt;p:commandButton action="#{clientController.newClient()}" value="Valider" ajax="false"/&gt; &lt;/h:panelGrid&gt; &lt;/h:form&gt; &lt;/ui:define&gt; &lt;/ui:composition&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>this is the code of newClient</p> <pre><code> public String newClient() { serviceClient.create(getClient()); message.info(new BundleKey("messages", "message.success")); return "lstClient"; } </code></pre> <p>the problem is that: when I put a client with name <code>zéro</code> it is saved in database with name <code>zéro</code>.</p> <p>Can anyone help me find a solution to this problem</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload