>>I see, but does the program that you use to open the file work correctly?
If
yes I suppose you don't have to worry :-)


Yes the file is opening correctly . But saving this opened file as it is
will again show the  %xx characters .

BTW user has to enter its own name to the file.

Problem lies beacause in jsp The thing appears as

Filename                               Download

 japaneseCharacters1             link1
 japaneseCharacters2             link2


and it does not appear correctly while saving (opening first).



Anyway thanks for all your answers.



Thanks and Regards,
Kapil Sharma



-----Original Message-----
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 08, 2007 5:43 PM
To: Struts Users Mailing List
Subject: Re: FileName characters.


2007/5/8, Kapil Sharma <[EMAIL PROTECTED]>:
>
> 2.
>
> The attachment dialog box shows correct filename.
> Also saving the file to my local disk also is correct
>
> But when i try to open the file directly on clik of "open" button from
> dialog box, the name is %xx



I see, but does the program that you use to open the file work correctly? If
yes I suppose you don't have to worry :-)


3.
>
> >>fileName = new String(fileName.getBytes("ISO-8859-1"), "UTF-8");
>
> I have done my jsp page  encoding as UTF-8 but i suppose my JVM or server
> specific encoding is ISO-8859-1

I need to do  String = new String(String.getBytes("ISO-8859-1"), "UTF-8");
> before storing anything to the oracle database
> otherwise it appears junk whenever i try to get it on the screen



The String class is encoding-independent, so maybe it is a problem of
correspondence between your JSP page header and the "meta" tag.
You have to set both:

<[EMAIL PROTECTED] pageEncoding="UTF-8"%>

and:

<html>
<head>
  <META http-equiv="Content-Type" content="text/html;charset=UTF-8">

HTH
Antonio



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to