Some aspects in your mail is not clear for me :(
But I try dive you some (may be useful) recommendations.

> There is a web page which takes server file name as an input..  The page is
> in UTF-8

How do you indicate that web page has coding in utf-8?
Do you use something like this?
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
This tag is necessary.

> now  if i create  a chinese file( NOTE IT IS THE NAME i am referring)  on
> the Server  using for example  say NJStar
> and

Where is in file name "NJStar" chinese characters?

> 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 !!!

Try something like this:

public void doPost(HttpServletRequest request,HttpServletResponse response)
  throws ServletException, IOException
{
    request.setCharacterEncoding("UTF-8");
    .........
    FileInputStream(request.getparameter("TXTFILENAME"));
    ........
}

If this will be not work try this with other webbrowsers.

___________________________________________________________________________
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

Reply via email to