Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Problems with UTF 8 characters

Help
Anonymous
2009-12-22
2013-04-29

  • Anonymous
    2009-12-22

    Hello,
    i am using mondrian 3.04 and jpivot 1.8.0. I am experiencing problems with some UTF 8 characters (WIN-1250 čžšćđ …).  The problem i get is the same as the one shown on this .

    I belive that there is some encoding problem. I have read the pentaho forums and found the following topics  and  but nothing helped.

    Furthermore I have tried with this setting:

        <!- this defaults to UTF-8, uncomment this section and change the value for other encodings ->

            <context-param>

                   <param-name>encoding</param-name>

                   <param-value>ISO-8859-1</param-value>

            </context-param>
    But i cant get jpivot to work correctly.  Has anyone expirienced simillar problems? Should i change the encoding of all JSP pages?

    Any input would be greately appreciated!

    Kind regards!

      : http://jpivot.sourceforge.net/images/jpivot-11.png
      : http://forums.pentaho.org/showthread.php?t=59913&highlight=unicode+characters
      : http://forums.pentaho.org/showthread.php?t=27604

     

  • Anonymous
    2010-01-11

    Thank you for your answer,

    i had some health that is why i could not answer earlier. We tried what you recommended but without success. Could you please send us the whole source for the class com.tonbeller.wcf.controller.RequestFilter.java with the necessary changes. We tried to make changes in moindrian 3.0.4 which already contains jpivot. The error remains the same as it was.

     

  • Anonymous
    2010-01-14

    Hi,

    we have partially solved the problem. First: follow the https://sourceforge.net/projects/jpivot/forums/forum/197390/topic/983788?message=3025484. Second: add this to the same file:

      protected String selectEncoding(ServletRequest request)
      {
          return (this.encoding);
      }
    

    Encoding should be set in the init method, but it seems that in our example does not get read from web.xml. So in our current solution we have hardcoded the same encoding that is in jsp (please check the jsp for encoding, it may be different?).

      protected String selectEncoding(ServletRequest request)
      {
          return "iso-8859-2";//(this.encoding);
      }
    

    We are looking into the "reading from web.xml" problem…

     
  • kingczar
    kingczar
    2010-01-27

    There is another way to solve this problem, mayby even better.
    You can intoduce a SetCharacterEncodingFilter like here.