jFileUpload does't support chinese file names

Upload core product.
ravituvar
Posts: 7
Joined: Wed Aug 22, 2012 11:28 am
Location: Ahmedabad
Contact:

jFileUpload does't support chinese file names

Post by ravituvar »

Hey Team,,
I am using jFileUpload control and it worked great till now..

But now i am facing problem in uploading the files having chinese name like abc教程.mp4

I tried the following..

Code: Select all

<param name ="resources" value="i18n"/>
as well...

The control shows the file name in jFileUpload Progress Message perfectly..

But it shows abc??.m4 in java consol..

Please help me out here..
Is there anything i am missing?
is there anything i need to do with IIS..since i am running my application on IIS Server..?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: jFileUpload does't support chinese file names

Post by support »

Did you use native2ascii tool to encode Chinese characters into i18n.properties?
See FAQ:
http://www.jfileupload.com/products/jfi ... aq.html#19

Also you should use the following applet parameter:
<PARAM NAME="encoding" VALUE="UTF8">

ravituvar
Posts: 7
Joined: Wed Aug 22, 2012 11:28 am
Location: Ahmedabad
Contact:

Re: jFileUpload does't support chinese file names

Post by ravituvar »

Yes i have used the

Code: Select all

<PARAM NAME="encoding" VALUE="UTF8">
In the Control Message the file name is perfect..

But in java console it comes with ??? characters..


I have already gone through viewtopic.php?f=2&t=173&p=770&hilit=chinese#p770

Here is my console..!


Java Plug-in 1.6.0_33
Using JRE version 1.6.0_33-b03-424-11M3720 Java HotSpot(TM) 64-Bit Server VM
User home directory = /Users/administrator
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
network: Connecting http://172.22.130.24:21/ with proxy=DIRECT
[INFO] FTPTransfer - Connected to ftp://172.22.130.24
[INFO] FTPTransfer - 220 Microsoft FTP Service

[INFO] FTPUploadTransfer - Upload started : /Users/administrator/Downloads/aspnet??aspnet??.wmv
[ERROR] FTPUploadTransfer - jfileupload.transfer.client.core.ClientException: Transfer failed
[INFO] FTPUploadTransfer - Attempt 1/3
[INFO] FTPTransfer - Disconnected from ftp://172.22.130.24
network: Connecting http://172.22.130.24:21/ with proxy=DIRECT
[INFO] FTPTransfer - Connected to ftp://172.22.130.24
[INFO] FTPTransfer - 220 Microsoft FTP Service

[INFO] FTPUploadTransfer - Upload started : /Users/administrator/Downloads/aspnet??aspnet??.wmv
[ERROR] FTPUploadTransfer - jfileupload.transfer.client.core.ClientException: Transfer failed
[INFO] FTPUploadTransfer - Attempt 2/3
[INFO] FTPTransfer - Disconnected from ftp://172.22.130.24
network: Connecting http://172.22.130.24:21/ with proxy=DIRECT
[INFO] FTPTransfer - Connected to ftp://172.22.130.24
[INFO] FTPTransfer - 220 Microsoft FTP Service

[INFO] FTPUploadTransfer - Upload started : /Users/administrator/Downloads/aspnet??aspnet??.wmv
[ERROR] FTPUploadTransfer - jfileupload.transfer.client.core.ClientException: Transfer failed
[INFO] FTPUploadTransfer - Attempt 3/3
[INFO] FTPTransfer - Disconnected from ftp://172.22.130.24
network: Connecting http://172.22.130.24:21/ with proxy=DIRECT
[INFO] FTPTransfer - Connected to ftp://172.22.130.24
[INFO] FTPTransfer - 220 Microsoft FTP Service

[INFO] FTPUploadTransfer - Upload started : /Users/administrator/Downloads/aspnet??aspnet??.wmv
[ERROR] FTPUploadTransfer - jfileupload.transfer.client.core.ClientException: Transfer failed
[INFO] FTPUploadTransfer - Upload failed
[INFO] FTPTransfer - Disconnected from ftp://172.22.130.24

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: jFileUpload does't support chinese file names

Post by support »

And is file uploaded on server with correct Chinese filename?

ravituvar
Posts: 7
Joined: Wed Aug 22, 2012 11:28 am
Location: Ahmedabad
Contact:

Re: jFileUpload does't support chinese file names

Post by ravituvar »

No the file is not uploaded on the server..!

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: jFileUpload does't support chinese file names

Post by support »

Ok, are you able to upload chinese filenames with regular FTP client such as FileZilla?

ravituvar
Posts: 7
Joined: Wed Aug 22, 2012 11:28 am
Location: Ahmedabad
Contact:

Re: jFileUpload does't support chinese file names

Post by ravituvar »

Yes,,

I am using FireFtp extension of FireFox and the file was successfully transferred to the server..

ravituvar
Posts: 7
Joined: Wed Aug 22, 2012 11:28 am
Location: Ahmedabad
Contact:

Re: jFileUpload does't support chinese file names

Post by ravituvar »

Is there anything i should do with windows server or IIs Server..?

If it is so please let me know..!

niravv
Posts: 1
Joined: Wed May 18, 2011 10:43 am

Re: jFileUpload does't support chinese file names

Post by niravv »

Guys,

Do we have any update on this. This is breaking our feature and wish to get a quick update on this.

Please help.

Thanks,
Nirav.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: jFileUpload does't support chinese file names

Post by support »

Does the chinese filename appear in UI as below?
chineseupload.jpg
chinese upload
(12.93 KiB) Not downloaded yet
If filename is broken on server-side then it's a matter of encoding.
Does your server support UTF-8 encoding?
If yes, then applet just need the following parameter:
<PARAM NAME="encoding" VALUE="UTF8">
If it's BIG5 then:
<PARAM NAME="encoding" VALUE="BIG5">

Are you using HTTP or FTP upload?

Post Reply