Let me give the complete details...
In our application we have a requirement for importing files into
database..
These files are residing on Windows NT. .
There is a web page which takes server file name as an input.. The page is
in UTF-8
now if i create a chinese file( NOTE IT IS THE NAME i am referring) on
the Server using for example say NJStar
and
if i specify the same name on the web page as file name input.. then on
the server side
When i give
FileInputStream(request.getparameter("TXTFILENAME"))
It says file not found !!!
It is amazing that the same stuff works for Microsoft JAVA SDK !!!!
Dmitrij Trunikov
<[EMAIL PROTECTED]> To: [EMAIL PROTECTED]
Sent by: "A mailing cc:
list for discussion Subject: Re: chinese file handling
about Sun
Microsystem's Java
Servlet API
Technology."
<SERVLET-INTEREST@JAV
A.SUN.COM>
02/05/02 05:21 PM
Please respond to "A
mailing list for
discussion about Sun
Microsystem's Java
Servlet API
Technology."
> I have a web application which requires reading of the chinese files
on
> the server (Windows NT) and importing them.
>
> But in java it seems this is impossible. Most of the windows
applications
> also give error ( "????? cannot be found")
>
> WIndows NT is english with chinese fonts installed.
Hello!
Probably you store filename in string with wrong locale.
When you try to store something in String object and explicitly don't give
encoding, then JVM use default encoding.
In your case default encoding is english because you use english version of
WinNT (and I think that def locale on it is english).
Could you give your code for details?
And one more question. Can you in WinNT explorer create file with chinese
characters in name?
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html