4 Replies Latest reply on Mar 10, 2009 12:43 PM by jamon

    problems with Encoding

      Hello, in my DataBase I have data in cyrillic symbols.
      And, I implement simple UI for using it; e.g. on page I place:

      <h:inputText id="desc" value="#{bean.strDesc}"
      


      and h:commandLink;
      basic idea this: after posting cyrillic text in inputTest and clicking on this link, in java bean some method building query like this:

      select * from table where col like '%value%'

      where value == bean.strDesc
      and executing it; but in resulting query cyrillic symbols replaced bad string like this:

      &#1099;&#1092;&#1099;&#1074;


      Now, what should I do to avoid this behavior? (I whant see in query cyrillic symbols)