Page 1 of 1

Other language letters in main page

Posted: Thu Sep 05, 2013 2:29 am
by spec8320
Hi I have problem with Polish letters in Blc (letters like ążźćóąłę):
I have:

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

But still in server page I see like [?] ?

In static html (not in localhost) everything is working but when i put this html to BLC suddenly Polish letters disapear

Re: Other language letters in main page

Posted: Mon Dec 09, 2013 3:07 am
by Theo Schumacher
Hi,

did you find the reason ? I have a simililar problem in french.

Thx

Re: Other language letters in main page

Posted: Mon Dec 09, 2013 12:16 pm
by phillipuniverse
Try what this post suggests: viewtopic.php?f=13&t=2311&p=6397&hilit=utf#p6397

which suggests adding a special UTF-8 filter to your web.xml:

Code: Select all

 <filter>
        <filter-name>encodingFilter</filter-name>
        <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>UTF-8</param-value>
        </init-param>
        <init-param>
            <param-name>forceEncoding</param-name>
            <param-value>true</param-value>
        </init-param>
    </filter>

    <filter-mapping>
        <filter-name>encodingFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>