Please try it.
If the simplified Chinese character,
<?xml version="1.0" encoding="gb2312" standalone="yes" ?>
<jsp:directive.page contentType="text/html;charset=gb2312"/>
If the traditional Chinese character,
<?xml version="1.0" encoding="big5" standalone="yes" ?>
<jsp:directive.page contentType="text/html;charset=big5"/>



Welkin

--- On Fri, 9/19/08, Jim the Standing Bear <[EMAIL PROTECTED]> wrote:
From: Jim the Standing Bear <[EMAIL PROTECTED]>
Subject: Re: Chinese characters used as path name does not work
To: "MyFaces Discussion" <[email protected]>
Date: Friday, September 19, 2008, 4:32 AM

I don't have any solutions, but you may want to try "zh_CN" and
"zh_TW" etc.

What's the default locale setting of the system that you are running
your web app from?  You should match that.

The text displays correctly because it is the browser that renders it.
 but in the case of your image, I believe it is the hosting OS
resolving the pathname.

HTH.

Jim

On Wed, Sep 17, 2008 at 12:00 AM, Henry Chang <[EMAIL PROTECTED]>
wrote:
> 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



-- 
--------------------------------------
Standing Bear Has Spoken
--------------------------------------



      

Reply via email to