Page 1 of 2

jFileUpload does't support chinese file names

Posted: Wed Aug 22, 2012 2:42 pm
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..?

Re: jFileUpload does't support chinese file names

Posted: Wed Aug 22, 2012 7:42 pm
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">

Re: jFileUpload does't support chinese file names

Posted: Thu Aug 23, 2012 8:50 am
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

Re: jFileUpload does't support chinese file names

Posted: Thu Aug 23, 2012 8:38 pm
by support
And is file uploaded on server with correct Chinese filename?

Re: jFileUpload does't support chinese file names

Posted: Fri Aug 24, 2012 5:28 am
by ravituvar
No the file is not uploaded on the server..!

Re: jFileUpload does't support chinese file names

Posted: Fri Aug 24, 2012 6:50 am
by support
Ok, are you able to upload chinese filenames with regular FTP client such as FileZilla?

Re: jFileUpload does't support chinese file names

Posted: Fri Aug 24, 2012 8:47 am
by ravituvar
Yes,,

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

Re: jFileUpload does't support chinese file names

Posted: Mon Aug 27, 2012 6:54 am
by ravituvar
Is there anything i should do with windows server or IIs Server..?

If it is so please let me know..!

Re: jFileUpload does't support chinese file names

Posted: Tue Aug 28, 2012 3:45 pm
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.

Re: jFileUpload does't support chinese file names

Posted: Tue Aug 28, 2012 5:11 pm
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?