Dear Sir,

Thanks but the problem is same after changing file encoding as code
below.
----------------------------
System.setProperty("file.encoding", "Big5");
or
System.setProperty("file.encoding", "UTF-8");
----------------------------


On 2月8日, 下午1時17分, Nichole <[email protected]> wrote:
> I just looked at appengine System properties
> (System.getProperty('file.encoding').
>
> Thefilesystem encoding is set to ANSI_X3.4-1968.  You might tinker
> with trying to
> change that?
>
> On Feb 6, 10:51 pm, Tony Yang <[email protected]> wrote:
>
>
>
>
>
>
>
> > Dear Sir,
> > Thanks a lot but the problem is still there.
> > Attached more description below.
> > 1. input some files into directory /war/images/ , they're arefilenames of
> > "img01.jpg", img02.jpg" ..."中文img.jpg"
> > 2. Assignfiledirectory in JSPfileby code below.
> >        FilemyFile = newFile(images/);
> >         String[] strFiles = myFile.list();
> > 3. Printfilenamein the assigned directory by JSP code below
> >          for(int i=0 ; i < strFiles.length ; i++){
> > file_name = strFiles[i].toString();
> >     out.println(file_name);
> >          }
> > 4. Thefilenamewith traditional Chinese characters(中文) cannot be printed
> > out but others are ok for printing.
> > 5. The mentioned problem only happened after deploying in GAE cloud but
> > didn't happen in local Eclipse development environment.
>
> > Please help and thanks again.
>
> > On Mon, Feb 6, 2012 at 5:05 PM, Nichole <[email protected]> wrote:
> > > With GFS you should be able to use any character in thenameof afile
> > > or directory except the null character,
> > > so you just need to form your string using the right encoding.
>
> > > String fileName = new String(str, "UTF-8);  or use Big5 for encoding?
>
> > > And then make sure the jsp prints the character correctly by including
> > > the encoding in one of several
> > > ways.  Here's one way:
> > > <%@ page language="java" contentType="text/html; UTF-8"
> > > pageEncoding="UTF-8" isELIgnored="false" %>
>
> > > On Feb 3, 7:44 pm, Tony Yang <[email protected]> wrote:
> > > > Dear Sir,
> > > > Would you help me the problem below.
> > > > Environment : Java and JSP
> > > > Action :retrievefilename fromfilewith Complicated Chinese
> > > > characters.
> > > > Samplefile: A1-中文.jpg
> > > > Response :
> > > > 1. OK for local Eclipse developing platform, thenameof "中文"  can be
> > > > retrieved.
> > > > 2. After deploying in GAE cloud, system sound having problem and skip
> > > > thisfileand no response.
>
> > > > Written code in JSPfile:
> > > > ----------
> > > > path_string = objFiles[i].toString();
> > > > index1 = path_string.lastIndexOf('-')+1;
> > > > index2 = path_string.indexOf('.');
> > > > file_name = path_string.substring(index1, index2)
> > > > <%= file_name%>
> > > > ---------
> > > > ---thanks.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to
> > > [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected].
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to