1 2 Previous Next 20 Replies Latest reply on May 27, 2008 6:25 AM by ilya_shaikovsky

    3.2.0.GA chracter encoding problem

      after upgrading to 3.2.0.GA special characters e.g. german umlauts are not transmitted correctly to the server.

      inputfield: "Ö"
      server gets: "Ã?"

      The only things I changed on my project are the 3 richfaces jars

      any ideas/hints?

      maybe I need to update some other jars (facelets) ?

      jsf implementation of my server is 1.2 (reading the MANIFEST file in the jsf-jars)

        • 1. Re: 3.2.0.GA chracter encoding problem
          maksimkaszynski
          • 2. Re: 3.2.0.GA chracter encoding problem
            egalperin

            Is there a workaround? The bug is a blocker for us. We can't use RichFaces with broken encoding.

            Any help would be most welcome

            • 3. Re: 3.2.0.GA chracter encoding problem
              baz

              Why is an h:inputText affected when changing only richfaces jars?

              This bug is really a blocker for us, because our internatinal users from spain, sweden, germany etc. can not even log in to our app. We have changed the richfaces jars in production back to 3.1.4
              But our testing and development server does depend on 3.2.0

              • 4. Re: 3.2.0.GA chracter encoding problem
                ilya_shaikovsky

                standard component affercted because as Nick already commented in bug - "That happened because of bug in filter. We're going to release fix for that in 3.2.0.SP1"

                • 5. Re: 3.2.0.GA chracter encoding problem
                  gkuzmin

                  Richfaces 3.2.0, Myfaces 1.2.2, Facelets 1.1.14 work with umlauts correct. With jsf 1.2_07 had problem. Simple didn't work if the sites contained any umlauts.

                  • 6. datatable is not reRendered with special charakters
                    smilidon

                    i have the same problem and additional if i enter some special character in an inputtext that is in a datatable, the table is not reRendered.

                    • 7. Re: 3.2.0.GA chracter encoding problem
                      smilidon

                      I have still the problem, if i enter some special characters like german umlauts in my inputfield

                      for example in html:

                      &oml


                      this is also what the inputfield value contains!! there is no utf-8 character...

                      the inputfield is in a datatable column(footer) and i get an ajax/xml error(undefined entity), because the character is not utf-8 like:

                      error[16:01:57,475]: Error parsing XML
                      error[16:01:57,475]: Parse Error: XML-Verarbeitungsfehler: Undefinierte Entität Adresse:
                      http://localhost:8080/MyWebApp/pages/vote.jsf Zeile Nr. 31, Spalte 981: </table>
                      </div></div>
                      <table class="dr-table rich-table " id="j_id8:voteTable" border="0" cellpadding="0" cellspacing="0"><colgroup span="4"></colgroup><thead class="dr-table-thead">
                      <tr class="dr-table-header rich-table-header "><th class="dr-table-headercell rich-table-headercell " id="j_id8:voteTable:j_id100" rowspan="2">Vorname</th>
                      <th class="dr-table-headercell rich-table-headercell " id="j_id8:voteTable:j_id101" rowspan="2">Nachname</th>
                      <th class="dr-table-headercell rich-table-headercell " id="j_id8:voteTable:j_id102" colspan="1">7. Mai 2008</th>
                      <th class="dr-table-headercell rich-table-headercell " id="j_id8:voteTable:j_id103" rowspan="2"></th></tr>
                      <tr class="dr-table-header-continue rich-table-header-continue ">
                      <th class="dr-table-headercell rich-table-headercell " id="j_id8:voteTable:j_id104">sd</th></tr></thead><tfoot>
                      <tr class="dr-table-footer rich-table-footer "><td class="dr-table-footercell rich-table-footercell " id="j_id8:voteTable:j_id106">
                      <input type="text" name="j_id8:voteTable:j_id107" value="&oml
                      " />
                      
                      ...
                      


                      is there also a bugfix? i really need that...

                      Thanks a lot!

                      regards

                      • 8. Re: 3.2.0.GA chracter encoding problem
                        ilya_shaikovsky

                        guys you sure you've using 3.2.0 SR1?

                        • 9. Re: 3.2.0.GA chracter encoding problem
                          smilidon

                          yes i'm sure using 3.2.0 SR1, i also tried a snapshot. the problem only occurs in datatabe i think. i have the inputfield in the footer an add dynamic new rows to the datatable. i also get the xml error, if i enter "<" in my textfield.

                          • 10. Re: 3.2.0.GA chracter encoding problem

                            I'm having this problem again in Version 3.2.1.CR2.
                            3.2.1.CR1 works alright, can anyone confirm this??

                            • 11. Re: 3.2.0.GA chracter encoding problem
                              tkuprevich

                              Hi Smilidon,

                              I checked that using the following example:

                               <rich:dataTable value="#{customList.customList}" var="list"
                               id="customTable">
                              
                               <rich:column>
                               <f:facet name="header">
                               <h:outputText value="input"></h:outputText>
                               </f:facet>
                               <h:inputText value="#{list.s0}"></h:inputText>
                               </rich:column>
                              
                               <rich:column>
                               <f:facet name="header">
                               <h:outputText value="output"></h:outputText>
                               </f:facet>
                               <h:outputText value="#{list.s0}"></h:outputText>
                               </rich:column>
                               </rich:dataTable>
                              
                               <a4j:commandButton value="AJAX" reRender="customTable"></a4j:commandButton>
                               <a4j:status id="custonStatus" startText="In progress..."
                               stopText="STOP"></a4j:status>
                              

                              When i enter &oml it renders the same value after rerendering. Even if i use russian letters everything is fine.

                              Could you share your code please?

                              • 12. Re: 3.2.0.GA chracter encoding problem
                                sendewelt

                                hello,

                                i discovered another problem with german umlaute:

                                <a4j:outputPanel id="xxx">
                                <h:outputText rendered="#{!empty
                                front.currentWorkflow.importFilePath}"
                                value="Datei"
                                id="selectedPath1">
                                </h:outputText>
                                </a4j:outputPanel>

                                in this case if the if the rendered property gets updated via ajax and all works fine, but if i add an umlaut
                                in value of outputtext e.g. change value="Datei" to value="Ausgewählte datei" the ajax update does not work anymore. the xhtml is encoded in utf 8. Noe errors in console.

                                br,

                                Andi

                                • 13. Re: 3.2.0.GA chracter encoding problem
                                  tkuprevich

                                  Andi,

                                  sorry, but it looks fine for me.

                                  Best Regards,
                                  Tsikhon Kuprevich

                                  • 14. Re: 3.2.0.GA chracter encoding problem
                                    smilidon

                                    thanks tkuprevich, i used your example and it doenst work, i still have the "bug?".

                                    here is a screenshot:

                                    [img]http://img377.imageshack.us/img377/6191/screenjm2.jpg[/img]

                                    url to the image:

                                    http://img377.imageshack.us/img377/6191/screenjm2.jpg

                                    1 2 Previous Next