With GFS you should be able to use any character in the name of a file
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 <tonyyan...@gmail.com> wrote:
> Dear Sir,
> Would you help me the problem below.
> Environment : Java and JSP
> Action : retrieve filename from file with Complicated Chinese
> characters.
> Sample file : A1-中文.jpg
> Response :
> 1. OK for local Eclipse developing platform, the name of "中文"  can be
> retrieved.
> 2. After deploying in GAE cloud, system sound having problem and skip
> this file and no response.
>
> Written code in JSP file :
> ----------
> 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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to