Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery Grid Charset
    text
    copied!<p>I am currently using a jQuery Grid to display data written in spanish, the data is displayed perfectly with accents ( ´ ) but whenever I try to search data using accent the server gets a malformed string like ∫√ instead the letter with accent.</p> <p>I am also sure this is a jQuery Grid problem since I am able to send data with accents submitting a form in the same page. </p> <p>I also added the content type in the header it as follows:</p> <pre><code>&lt;%@ page contentType="text/html;charset=UTF-8" %&gt; &lt;sj:head jquerytheme="redmond" locale="es" /&gt; </code></pre> <p>This is the code of my jQuery grid wich I'm using with the struts2 plugin.</p> <pre><code>&lt;s:url id="remoteurl" action="tabla-historial-director" /&gt; &lt;s:url id="selectperiodourl" action="periodos" /&gt; &lt;sjg:grid id="grid" caption="Trabajos Terminales dirigidos" dataType="json" href="%{remoteurl}" pager="true" navigator="true" navigatorAdd="false" navigatorDelete="false" navigatorEdit="false" gridModel="gridModel" rowList="3,10,15,20" rowNum="10" hidegrid="false" gridview="true" viewrecords="true" &gt; &lt;sjg:gridColumn align="center" name="numRegistro" index="numRegistro" title="No. de registro" width="120" sortable="true" search="true" searchoptions="{sopt:['eq']}" /&gt; &lt;sjg:gridColumn name="titulo" index="titulo" title="Título" width="840" search="true" searchoptions="{sopt:['cn']}" /&gt; &lt;sjg:gridColumn align="center" name="tipo" index="tipo" title="Tipo" width="60" search="false" /&gt; &lt;sjg:gridColumn align="center" name="periodo" index="periodo" title="Periodo" width="80" search="true" surl="%{selectcountrysurl}" searchoptions="{sopt:['eq'], dataUrl : '%{selectperiodourl}'}" searchtype="select" /&gt; &lt;sjg:gridColumn align="center" index="objetivo" name="objetivo" editable="true" sortable="true" hidden="true" editrules="{ edithidden : true } " title="Objetivo" width="20" /&gt; &lt;sjg:gridColumn search="false" sortable="false" name="idTT" key="true" title="Acción" width="80" formatter="formatLink" /&gt; &lt;/sjg:grid&gt; </code></pre> <p>Please I'd like to know how to use the search button along with spanish accents, thank you very much for the help.</p>
 

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