Hi, 

 

I have problems on having Chinese characters path names when using MyFaces
Trinidad. For example, consider the following code:

 

<tr:image source="#{backing.pathname}" /> where the pathname contains
Chinese characters. 

 

The image cannot be displayed on the webpage. I have tried many possible
solutions, including the following:

 

<f:view locale="zh">

</f:view>

 

In faces-config.xml file, add:

<application>

<locale-config>

<default-locale>zh</default-locale>

</locale-config>

</application>

 

In the web page,

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>

<jsp:directive.page contentType="text/html;charset=utf-8" />

 

 

However, please note that Chinese characters CAN be displayed on the page
without any problems. For example, if I change this into:

 

<tr:outputText value="#{backing.pathname}" /> This works and displays the
Chinese characters correctly on the page.

 

It is just that the Chinese characters used as path name of images doesn't
work!!

 

Any solutions or ideas? Thanks.

 

Henry Chang

Reply via email to