Well, rss.xml is a static xml file.
I'm very confused by this problem.
It seems that the request "http://localhost:8080/test/rss.xml" has nothing to do with JSF.
But, with myfaces-core-1.1.3 & tomahawk-1.1.2, the Chinese characters in rss.xml can not be displayed correctly.

web.xml:
<servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
<filter>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter </filter-class>
        <init-param>
            <param-name>maxFileSize</param-name>
            <param-value>20m</param-value
        </init-param>
        <init-param>
            <param-name>uploadThresholdSize</param-name>
            <param-value>100k</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <url-pattern>*.faces</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <url-pattern>/faces/*</url-pattern>
    </filter-mapping>

2006/6/9, Matthias Wessendorf <[EMAIL PROTECTED]>:
> For example, I request http://localhost:8080/test/rss.xml,
> the xml will be displayed but the Chinese characters can not be displayed
> correctly.

how has this url do to w/ your JSF app ?
To me it looks like a *static* xml file

> org.apache.myfaces.component.html.util.ExtensionsFilter and

deprecated

-Matthias

> org.apache.myfaces.webapp.filter.ExtensionsFilter ?
>
> Thank you!
>


--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Reply via email to